diff --git a/packages/jest-runtime/src/index.ts b/packages/jest-runtime/src/index.ts index 7be6cf2db53d..22f2abe29a61 100644 --- a/packages/jest-runtime/src/index.ts +++ b/packages/jest-runtime/src/index.ts @@ -689,7 +689,7 @@ export default class Runtime { async unstable_importModule( from: string, moduleName?: string, - ): Promise { + ): Promise { 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',