diff --git a/packages/jest-resolve/src/defaultResolver.ts b/packages/jest-resolve/src/defaultResolver.ts index 639f4b89b870..207c2820d7f5 100644 --- a/packages/jest-resolve/src/defaultResolver.ts +++ b/packages/jest-resolve/src/defaultResolver.ts @@ -7,11 +7,11 @@ import * as fs from 'graceful-fs'; import pnpResolver from 'jest-pnp-resolver'; -import resolveAsync = require('resolve'); import type {AsyncOpts, SyncOpts} from 'resolve'; import type {Config} from '@jest/types'; import {tryRealpath} from 'jest-util'; -const resolveSync = resolveAsync.sync; +const resolveSync = require('resolve').sync; +const resolveAsync = require('resolve/lib/async'); export type ResolverOptions = { basedir: Config.Path;