Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Jul 6, 2023
1 parent 19c6020 commit c6f0834
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/scenarios/v2-addon-dev-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -43,7 +43,7 @@ appScenarios
],
}],
["@babel/plugin-proposal-decorators", { "legacy": true }],
[ "@babel/plugin-proposal-class-properties" ]
[ "@babel/plugin-transform-class-properties" ]
]
}
`,
Expand Down Expand Up @@ -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 });
Expand Down Expand Up @@ -181,7 +182,7 @@ appScenarios
test('<SingleFileComponent @message="bob" />', async function(assert) {
await render(hbs\`<SingleFileComponent @message="bob" />\`);
assert.dom().containsText('hello bob');
assert.dom().containsText('Hello bob');
})
test('transform worked', async function (assert) {
Expand Down Expand Up @@ -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(\"<div data-test-single-file-component>Hello {{@message}}</div>\", {
strictMode: true
}), templateOnly());
}), SingleFileComponent);
export { SingleFileComponent as default };
//# sourceMappingURL=single-file-component.js.map`);
Expand Down

0 comments on commit c6f0834

Please sign in to comment.