@@ -25,6 +25,7 @@ import type { EmberPrecompileOptions } from 'ember-template-compiler';
25
25
import { compile } from 'ember-template-compiler' ;
26
26
import { runTask } from 'internal-test-helpers/lib/run' ;
27
27
import { DEPRECATIONS } from '@ember/-internals/deprecations' ;
28
+ import templateOnly from '@ember/component/template-only' ;
28
29
29
30
interface CapturedBounds {
30
31
parentElement : SimpleElement ;
@@ -218,10 +219,13 @@ if (ENV._DEBUG_RENDER_TREE) {
218
219
)
219
220
) ;
220
221
this . register (
221
- 'template:components/inspect-model' ,
222
- compileTemplate ( '{{@model}}' , {
223
- moduleName : 'foo/components/inspect-model.hbs' ,
224
- } )
222
+ 'component:components/inspect-model' ,
223
+ setComponentTemplate (
224
+ compileTemplate ( '{{@model}}' , {
225
+ moduleName : 'foo/components/inspect-model.hbs' ,
226
+ } ) ,
227
+ templateOnly ( )
228
+ )
225
229
) ;
226
230
}
227
231
@@ -256,10 +260,13 @@ if (ENV._DEBUG_RENDER_TREE) {
256
260
)
257
261
) ;
258
262
this . register (
259
- 'template:components/inspect-model' ,
260
- compileTemplate ( '{{@model}}' , {
261
- moduleName : 'bar/components/inspect-model.hbs' ,
262
- } )
263
+ 'component:components/inspect-model' ,
264
+ setComponentTemplate (
265
+ compileTemplate ( '{{@model}}' , {
266
+ moduleName : 'bar/components/inspect-model.hbs' ,
267
+ } ) ,
268
+ templateOnly ( )
269
+ )
263
270
) ;
264
271
}
265
272
0 commit comments