Skip to content

Commit 7216409

Browse files
lopezatorrandycoulman
authored andcommitted
Updated react-scripts babel-jest && jest packages to 18.0.0 (facebook#1311)
1 parent e28baf1 commit 7216409

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

Diff for: packages/react-scripts/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"autoprefixer": "6.5.1",
2727
"babel-core": "6.17.0",
2828
"babel-eslint": "7.1.1",
29-
"babel-jest": "17.0.2",
29+
"babel-jest": "18.0.0",
3030
"babel-loader": "6.2.7",
3131
"babel-preset-latest": "^6.16.0",
3232
"babel-preset-react": "^6.16.0",
@@ -53,7 +53,7 @@
5353
"html-webpack-plugin": "2.24.0",
5454
"http-proxy-middleware": "0.17.2",
5555
"identity-obj-proxy": "^3.0.0",
56-
"jest": "17.0.2",
56+
"jest": "18.0.0",
5757
"json-loader": "0.5.4",
5858
"node-sass": "^3.13.0",
5959
"object-assign": "4.1.0",

Diff for: packages/react-scripts/scripts/test.js

-12
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,6 @@ if (!process.env.CI && argv.indexOf('--coverage') < 0) {
2626
argv.push('--watch');
2727
}
2828

29-
// A temporary hack to clear terminal correctly.
30-
// You can remove this after updating to Jest 18 when it's out.
31-
// https://github.com/facebook/jest/pull/2230
32-
var realWrite = process.stdout.write;
33-
var CLEAR = process.platform === 'win32' ? '\x1Bc' : '\x1B[2J\x1B[3J\x1B[H';
34-
process.stdout.write = function(chunk, encoding, callback) {
35-
if (chunk === '\x1B[2J\x1B[H') {
36-
chunk = CLEAR;
37-
}
38-
return realWrite.call(this, chunk, encoding, callback);
39-
};
40-
4129
// @remove-on-eject-begin
4230
// This is not necessary after eject because we embed config into package.json.
4331
const createJestConfig = require('../utils/createJestConfig');

Diff for: packages/react-scripts/utils/createJestConfig.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = (resolve, rootDir, isEjecting) => {
3030
setupFiles: [resolve('config/polyfills.js')],
3131
setupTestFrameworkScriptFile: setupTestsFile,
3232
testPathIgnorePatterns: [
33-
'<rootDir>[/\\\\](build|docs|node_modules)[/\\\\]'
33+
'<rootDir>[/\\\\](build|docs|node_modules|scripts)[/\\\\]'
3434
],
3535
testEnvironment: 'node',
3636
testURL: 'http://localhost',

0 commit comments

Comments
 (0)