diff --git a/packages/jest-resolve/src/__mocks__/package.json b/packages/jest-resolve/src/__mocks__/package.json new file mode 100644 index 000000000000..2807645e6dca --- /dev/null +++ b/packages/jest-resolve/src/__mocks__/package.json @@ -0,0 +1,6 @@ +{ + "name": "__mocks__", + "version": "1.0.0", + "dependencies": { + } +} diff --git a/packages/jest-resolve/src/__tests__/resolve.test.ts b/packages/jest-resolve/src/__tests__/resolve.test.ts index cfbe99bc841d..3cccd655562e 100644 --- a/packages/jest-resolve/src/__tests__/resolve.test.ts +++ b/packages/jest-resolve/src/__tests__/resolve.test.ts @@ -216,8 +216,8 @@ describe('resolveModule', () => { const src = require.resolve('../'); const resolved = resolver.resolveModule(src, 'mockJsDependency', { paths: [ - path.resolve(__dirname, '../../src/__tests__'), path.resolve(__dirname, '../../src/__mocks__'), + path.resolve(__dirname, '../../src/__tests__'), ], }); expect(resolved).toBe(require.resolve('../__mocks__/mockJsDependency.js'));