Skip to content

Commit

Permalink
fix(jest): import-local should be used in main jest pakage (#5353)
Browse files Browse the repository at this point in the history
* fix(jest): `import-local` should be used in main jest pakage

* docs: update changelog

* Update CHANGELOG.md
  • Loading branch information
SimenB authored and cpojer committed Jan 20, 2018
1 parent 4da1417 commit b19f977
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
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

0 comments on commit b19f977

Please sign in to comment.