diff --git a/tests/scenarios/v2-addon-dev-test.ts b/tests/scenarios/v2-addon-dev-test.ts index 9bb7751a5b..f31e68a1a5 100644 --- a/tests/scenarios/v2-addon-dev-test.ts +++ b/tests/scenarios/v2-addon-dev-test.ts @@ -34,7 +34,7 @@ appScenarios ], "plugins": [ "@embroider/addon-dev/template-colocation-plugin", - "@babel/plugin-proposal-class-static-block", + "@babel/plugin-transform-class-static-block", ["babel-plugin-ember-template-compilation", { targetFormat: 'hbs', compilerPath: 'ember-source/dist/ember-template-compiler', @@ -43,7 +43,7 @@ appScenarios ], }], ["@babel/plugin-proposal-decorators", { "legacy": true }], - [ "@babel/plugin-proposal-class-properties" ] + [ "@babel/plugin-transform-class-properties" ] ] } `, @@ -149,7 +149,8 @@ appScenarios addon.linkDependency('@embroider/addon-dev', { baseDir: __dirname }); addon.linkDependency('babel-plugin-ember-template-compilation', { baseDir: __dirname }); addon.linkDevDependency('@babel/core', { baseDir: __dirname }); - addon.linkDevDependency('@babel/plugin-proposal-class-properties', { baseDir: __dirname }); + addon.linkDevDependency('@babel/plugin-transform-class-static-block', { baseDir: __dirname }); + addon.linkDevDependency('@babel/plugin-transform-class-properties', { baseDir: __dirname }); addon.linkDevDependency('@babel/plugin-proposal-decorators', { baseDir: __dirname }); addon.linkDevDependency('@babel/preset-env', { baseDir: __dirname }); addon.linkDevDependency('@rollup/plugin-babel', { baseDir: __dirname }); @@ -181,7 +182,7 @@ appScenarios test('', async function(assert) { await render(hbs\`\`); - assert.dom().containsText('hello bob'); + assert.dom().containsText('Hello bob'); }) test('transform worked', async function (assert) { @@ -262,15 +263,14 @@ appScenarios test('gjs components compiled correctly', async function () { expectFile( 'dist/components/single-file-component.js' - ).matches(`import templateOnly from '@ember/component/template-only'; -import { setComponentTemplate } from '@ember/component'; + ).equalsCode(`import { setComponentTemplate } from '@ember/component'; import { precompileTemplate } from '@ember/template-compilation'; import Component from '@glimmer/component'; class SingleFileComponent extends Component {} setComponentTemplate(precompileTemplate(\"
Hello {{@message}}
\", { strictMode: true -}), templateOnly()); +}), SingleFileComponent); export { SingleFileComponent as default }; //# sourceMappingURL=single-file-component.js.map`);