Skip to content

Commit 88bb0d1

Browse files
NullVoxPopuliclaude
andcommitted
fix: skip dynamic component name tests in production builds
The invocation-site name propagation relies on ref.debugLabel which is only available in DEBUG mode. Skip these tests in production builds. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5d8a421 commit 88bb0d1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/@glimmer-workspace/integration-tests/test/debug-render-tree-test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import type {
1111
import type { TemplateOnlyComponent } from '@glimmer/runtime';
1212
import type { EmberishCurlyComponent } from '@glimmer-workspace/integration-tests';
1313
import { expect } from '@glimmer/debug-util';
14+
import { DEBUG } from '@glimmer/env';
1415
import { modifierCapabilities, setComponentTemplate, setModifierManager } from '@glimmer/manager';
1516
import { EMPTY_ARGS, templateOnlyComponent, TemplateOnlyComponentManager } from '@glimmer/runtime';
1617
import { assign } from '@glimmer/util';
@@ -142,7 +143,7 @@ class DebugRenderTreeTest extends RenderTest {
142143
]);
143144
}
144145

145-
@test 'dynamic component via <this.dynamicComponent>'() {
146+
@test({ skip: !DEBUG }) 'dynamic component via <this.dynamicComponent>'() {
146147
const HelloWorld = defComponent('{{@arg}}');
147148

148149
class Root extends GlimmerishComponent {
@@ -170,7 +171,7 @@ class DebugRenderTreeTest extends RenderTest {
170171
);
171172
}
172173

173-
@test 'dynamic component via <@argComponent>'() {
174+
@test({ skip: !DEBUG }) 'dynamic component via <@argComponent>'() {
174175
const HelloWorld = defComponent('{{@arg}}');
175176
const Root = defComponent(`<@Greeting @arg="first"/>`, {
176177
emit: { moduleName: 'root.hbs' },

0 commit comments

Comments
 (0)