Skip to content

Commit

Permalink
"fix" tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Oct 18, 2021
1 parent 30890ee commit 0d172d8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-resolve/src/__tests__/resolve.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,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'));
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "NODE_PATH_dir",
"version": "1.0.0",
"dependencies": {
}
}
6 changes: 6 additions & 0 deletions packages/jest-runtime/src/__tests__/test_root/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "test_root",
"version": "1.0.0",
"dependencies": {
}
}

0 comments on commit 0d172d8

Please sign in to comment.