Skip to content

Commit

Permalink
fix: remove module extension from imported file in fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
syi0808 committed Jul 21, 2024
1 parent 8012dff commit 4c9cc82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export let string = 'original esm string';
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ try {
if (mock.module) mock.module('Whatever, this is not significant', { namedExports: {} });
} catch {}

const { string } = await import('./basic-esm');
const { string } = await import('./basic-esm-without-extension');
console.log(`Found string: ${string}`); // prints 'original esm string'

0 comments on commit 4c9cc82

Please sign in to comment.