Skip to content

Commit

Permalink
Call loadEsmModule instead of linkAndEvaluateModule in _importWasmModule
Browse files Browse the repository at this point in the history
  • Loading branch information
kachkaev committed Oct 30, 2022
1 parent 0d4945e commit 26db3fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-runtime/src/index.ts
Expand Up @@ -1680,7 +1680,7 @@ export default class Runtime {
const moduleLookup: Record<string, VMModule> = {};
for (const {module} of imports) {
if (moduleLookup[module] === undefined) {
moduleLookup[module] = await this.linkAndEvaluateModule(
moduleLookup[module] = await this.loadEsmModule(
await this.resolveModule(module, identifier, context),
);
}
Expand Down

0 comments on commit 26db3fd

Please sign in to comment.