Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add jest-resolve to resolve modules based on the Facebook module resolution algorithm. #1007

Closed
wants to merge 7 commits into from
4 changes: 2 additions & 2 deletions integration_tests/__tests__/stack_trace-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ describe('Stack Trace', () => {
/\s+at\s(?:.+?)\s\(__tests__\/test-error-test\.js/
);

// Make sure we show Jest's Runtime.js as part of the stack trace
// Make sure we show Jest's jest-resolve as part of the stack trace
expect(stdout).toMatch(
/Error: Cannot find module 'this-module-does-not-exist' from 'test-error-test\.js'/
);
expect(stdout).toMatch(
/\s+at\s(?:.+?)\s\((?:.+?)Runtime\/Runtime\.js/
/\s+at\s(?:.+?)\s\((?:.+?)jest-resolve\/src\/index\.js/
);
});

Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"lerna": "2.0.0-beta.7",
"lerna": "2.0.0-beta.10",
"version": "12.0.2"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"eslint": "^1.10.3",
"eslint-plugin-babel": "^3.2.0",
"fbjs-scripts": "^0.6.0",
"lerna": "2.0.0-beta.7",
"lerna": "2.0.0-beta.10",
"rimraf": "^2.4.4"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
"jest-jasmine1": "^12.0.2",
"jest-jasmine2": "^12.0.2",
"jest-mock": "^12.0.2",
"jest-resolve": "^12.0.2",
"jest-util": "^12.0.2",
"json-stable-stringify": "^1.0.0",
"lodash.template": "^4.2.4",
"optimist": "^0.6.1",
"resolve": "^1.1.6",
"sane": "^1.2.0",
"which": "^1.1.1",
"worker-farm": "^1.3.1"
Expand Down
Loading