Skip to content

Commit 87b4568

Browse files
committed
Wip try to fix debug render tree tests
1 parent 5800192 commit 87b4568

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

packages/@ember/-internals/glimmer/tests/integration/application/debug-render-tree-test.ts

+15-8
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import type { EmberPrecompileOptions } from 'ember-template-compiler';
2525
import { compile } from 'ember-template-compiler';
2626
import { runTask } from 'internal-test-helpers/lib/run';
2727
import { DEPRECATIONS } from '@ember/-internals/deprecations';
28+
import templateOnly from '@ember/component/template-only';
2829

2930
interface CapturedBounds {
3031
parentElement: SimpleElement;
@@ -218,10 +219,13 @@ if (ENV._DEBUG_RENDER_TREE) {
218219
)
219220
);
220221
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+
)
225229
);
226230
}
227231

@@ -256,10 +260,13 @@ if (ENV._DEBUG_RENDER_TREE) {
256260
)
257261
);
258262
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+
)
263270
);
264271
}
265272

0 commit comments

Comments
 (0)