Skip to content

Commit

Permalink
chore(jest-runtime): runtime.unstable_importModule should not retur…
Browse files Browse the repository at this point in the history
…n `Promise<void>` (#12009)
  • Loading branch information
chentsulin authored Oct 29, 2022
1 parent e3657a3 commit 54ce105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-runtime/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ export default class Runtime {
async unstable_importModule(
from: string,
moduleName?: string,
): Promise<void> {
): Promise<VMModule | void> {
invariant(
runtimeSupportsVmModules,
'You need to run with a version of node that supports ES Modules in the VM API. See https://jestjs.io/docs/ecmascript-modules',
Expand Down

0 comments on commit 54ce105

Please sign in to comment.