-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from palmerj3/upgradeJest
Upgrade jest, jest-config, jest-validate to 24
- Loading branch information
Showing
5 changed files
with
25 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
node_modules | ||
yarn.lock | ||
junit.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,6 @@ node_js: | |
env: | ||
- JEST_VERSION=^22.0.0 | ||
- JEST_VERSION=^23.0.0 | ||
- JEST_VERSION=^24.0.0 | ||
script: | ||
- npm run test:ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copied from https://github.com/facebook/jest/blob/master/packages/jest-config/src/utils.js | ||
// in order to reduce incompatible jest dependencies | ||
|
||
const path = require('path'); | ||
|
||
module.exports = { | ||
replaceRootDirInPath : ( | ||
rootDir, | ||
filePath, | ||
) => { | ||
if (!/^<rootDir>/.test(filePath)) { | ||
return filePath; | ||
} | ||
|
||
return path.resolve( | ||
rootDir, | ||
path.normalize('./' + filePath.substr('<rootDir>'.length)), | ||
); | ||
} | ||
} |