Update all Jest packages to 17.x (#8327)

* Update all Jest packages to 17.x, cache babel-jest transforms

* Remove the caching

Looking at the other builds it doesn't seem to actually be that necessary.  The bottleneck is executors, not build time.

* Remove unnecessary package, fix fiber test runner

* Regenerate yarn lockfile
This commit is contained in:
Evan Scott
2016-11-20 16:10:08 +00:00
committed by Dan Abramov
parent 501ac150f6
commit 77c890dfa2
4 changed files with 371 additions and 435 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ function run(done, coverage) {
grunt.log.writeln('running jest');
var args = [
path.join('node_modules', 'jest', 'bin', 'jest'),
path.join('node_modules', 'jest-cli', 'bin', 'jest'),
];
if (coverage) {
args.push('--coverage');
+8 -5
View File
@@ -9,6 +9,7 @@
"babel-cli": "^6.6.5",
"babel-core": "^6.0.0",
"babel-eslint": "^7.1.0",
"babel-jest": "17.0.2",
"babel-plugin-check-es2015-constants": "^6.5.0",
"babel-plugin-syntax-trailing-function-commas": "^6.5.0",
"babel-plugin-transform-class-properties": "^6.11.5",
@@ -61,10 +62,10 @@
"gulp-load-plugins": "^1.2.4",
"gulp-util": "^3.0.7",
"gzip-js": "~0.3.2",
"jest": "^15.1.1",
"jest-config": "^15.1.1",
"jest-jasmine2": "^15.1.1",
"jest-runtime": "^15.1.1",
"jest-cli": "17.0.2",
"jest-config": "^17.0.2",
"jest-jasmine2": "^17.0.2",
"jest-runtime": "^17.0.2",
"loose-envify": "^1.1.0",
"merge-stream": "^1.0.0",
"object-assign": "^4.1.0",
@@ -98,7 +99,9 @@
"/react/build/"
],
"rootDir": "",
"scriptPreprocessor": "scripts/jest/preprocessor.js",
"transform": {
".*": "scripts/jest/preprocessor.js"
},
"setupFiles": [
"scripts/jest/environment.js"
],
+5 -3
View File
@@ -8,8 +8,9 @@ const fs = require('fs');
const os = require('os');
const path = require('path');
const SearchSource = require('jest').SearchSource;
const TestRunner = require('jest').TestRunner;
const SearchSource = require('jest-cli').SearchSource;
const TestRunner = require('jest-cli').TestRunner;
const TestWatcher = require('jest-cli/build/TestWatcher');
const createHasteContext = require('jest-runtime').createHasteContext;
const readConfig = require('jest-config').readConfig;
@@ -95,7 +96,8 @@ function runJest() {
getTestSummary: () => 'You did it!'
}
);
return runner.runTests(data.paths);
const watcher = new TestWatcher({isWatchMode: false});
return runner.runTests(data.paths, watcher);
});
});
});
+357 -426
View File
File diff suppressed because it is too large Load Diff