Skip to content

Commit

Permalink
test_runner: 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 61439ba commit 45fb6b1
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 45fb6b1

Please sign in to comment.