diff --git a/packages/macros/tests/babel/import-sync.test.ts b/packages/macros/tests/babel/import-sync.test.ts index 9d7536a4f..bdbe015a5 100644 --- a/packages/macros/tests/babel/import-sync.test.ts +++ b/packages/macros/tests/babel/import-sync.test.ts @@ -11,7 +11,7 @@ describe('importSync', function () { import { importSync } from '@embroider/macros'; importSync('foo'); `); - expect(code).toMatch(/import esc from "\.\.\/\.\.\/src\/addon\/es-compat2"/); + expect(code).toMatch(/import esc from "\.\.\/\.\.\/src\/addon\/es-compat2\.js"/); expect(code).toMatch(/esc\(require\(['"]foo['"]\)\)/); expect(code).not.toMatch(/window/); }); diff --git a/tests/scenarios/v2-addon-type-module-test.ts b/tests/scenarios/v2-addon-type-module-test.ts index ec898767e..969b22226 100644 --- a/tests/scenarios/v2-addon-type-module-test.ts +++ b/tests/scenarios/v2-addon-type-module-test.ts @@ -15,6 +15,7 @@ appScenarios addon.pkg.exports = { './*': './src/*.js', './addon-main.cjs': './addon-main.cjs', + './side-effecting.js': './src/side-effecting.js' }; addon.pkg['ember-addon'].main = 'addon-main.cjs'; @@ -32,7 +33,6 @@ appScenarios */ 'demo.js': ` import { importSync } from '@embroider/macros'; - importSync('./side-effecting.js'); `, },