Skip to content

Commit

Permalink
Use deep require
Browse files Browse the repository at this point in the history
  • Loading branch information
IanVS committed Sep 10, 2021
1 parent d782835 commit ea9435a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/jest-resolve/src/defaultResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ea9435a

Please sign in to comment.