Skip to content

Commit 4c9cc82

Browse files
committed
fix: remove module extension from imported file in fixture
1 parent 8012dff commit 4c9cc82

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export let string = 'original esm string';

test/fixtures/module-mocking/wrong-import-after-module-mocking.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ try {
44
if (mock.module) mock.module('Whatever, this is not significant', { namedExports: {} });
55
} catch {}
66

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

0 commit comments

Comments
 (0)