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

fix(jest): import-local should be used in main jest pakage #5353

Merged
merged 3 commits into from
Jan 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
## master

### Fixes

* `[jest]` Add `import-local` to `jest` package.
([#5353](https://github.com/facebook/jest/pull/5353))

## jest 22.1.4

### Fixes

* `[jest-util]` Add "debug" method to "console" implementations
([#5350](https://github.com/facebook/jest/pull/5350))
* `[jest-resolve]` Add condition to avoid infinite loop when node module package main is ".".
([#5344)](https://github.com/facebook/jest/pull/5344)
* `[jest-resolve]` Add condition to avoid infinite loop when node module package
main is ".". ([#5344)](https://github.com/facebook/jest/pull/5344)

### Features

* `[jest-cli]` `--changedSince`: allow selectively running tests for code
changed since arbitrary revisions.
([#5312](https://github.com/facebook/jest/pull/5312))
Expand Down
6 changes: 5 additions & 1 deletion packages/jest/bin/jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@
* LICENSE file in the root directory of this source tree.
*/

require('jest-cli/bin/jest');
const importLocal = require('import-local');

if (!importLocal(__filename)) {
require('jest-cli/bin/jest');
}
1 change: 1 addition & 0 deletions packages/jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"version": "22.1.4",
"main": "build/jest.js",
"dependencies": {
"import-local": "^1.0.0",
"jest-cli": "^22.1.4"
},
"bin": {
Expand Down