Skip to content

Commit 62b4b09

Browse files
committed
Ensure that JS that imports Wasm runs
1 parent 39d8734 commit 62b4b09

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/es-module/test-esm-type-flag-package-scopes.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('the type flag should change the interpretation of certain files within
3333
]);
3434

3535
strictEqual(stderr, '');
36-
strictEqual(stdout, '');
36+
strictEqual(stdout, 'executed\n');
3737
strictEqual(code, 0);
3838
strictEqual(signal, null);
3939
});

test/fixtures/es-modules/package-type-module/wasm-dep.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ export let state = 'JS Function Executed';
1010
export function jsInitFn () {
1111
strictEqual(state, 'JS Function Executed');
1212
state = 'WASM Start Executed';
13-
}
13+
}
14+
15+
console.log('executed');

0 commit comments

Comments
 (0)