Skip to content

Commit

Permalink
remove build time error test
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Oct 13, 2022
1 parent 6c02974 commit 50ceb06
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions packages/ember-auto-import/ts/tests/splitter-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,22 +343,6 @@ Qmodule('splitter', function (hooks) {
}
});

test('dynamic template relative imports are forbidden', async function (assert) {
assert.expect(1);
let src = 'import(`./thing/${foo}`)';
outputFileSync(join(project.baseDir, 'sample.js'), src);
await builder.build();
try {
await splitter.deps();
throw new Error(`expected not to get here, build was supposed to fail`);
} catch (err) {
assert.contains(
err.message,
`ember-auto-import does not support dynamic relative imports. "./thing/" is relative. To make this work, you need to upgrade to Embroider.`
);
}
});

test('exact alias remaps package name and root', async function (assert) {
setup({
alias: {
Expand Down

0 comments on commit 50ceb06

Please sign in to comment.