diff --git a/packages/react-dev-utils/package.json b/packages/react-dev-utils/package.json index b76605954..f3062c56d 100644 --- a/packages/react-dev-utils/package.json +++ b/packages/react-dev-utils/package.json @@ -28,7 +28,7 @@ "escape-string-regexp": "1.0.5", "html-entities": "1.2.0", "opn": "4.0.2", - "sockjs-client": "1.0.3", + "sockjs-client": "1.0.1", "strip-ansi": "3.0.1" } } diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json index 827629f9b..dc24f7b20 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -38,7 +38,7 @@ "gzip-size": "3.0.0", "html-webpack-plugin": "2.24.0", "http-proxy-middleware": "0.17.2", - "jest": "17.0.2", + "jest": "18.0.0", "json-loader": "0.5.4", "object-assign": "4.1.0", "postcss-loader": "1.0.0", diff --git a/packages/react-scripts/scripts/test.js b/packages/react-scripts/scripts/test.js index 13857917e..9de5181d7 100644 --- a/packages/react-scripts/scripts/test.js +++ b/packages/react-scripts/scripts/test.js @@ -26,18 +26,6 @@ if (!process.env.CI && argv.indexOf('--coverage') < 0) { argv.push('--watch'); } -// A temporary hack to clear terminal correctly. -// You can remove this after updating to Jest 18 when it's out. -// https://github.com/facebook/jest/pull/2230 -var realWrite = process.stdout.write; -var CLEAR = process.platform === 'win32' ? '\x1Bc' : '\x1B[2J\x1B[3J\x1B[H'; -process.stdout.write = function(chunk, encoding, callback) { - if (chunk === '\x1B[2J\x1B[H') { - chunk = CLEAR; - } - return realWrite.call(this, chunk, encoding, callback); -}; - // @remove-on-eject-begin // This is not necessary after eject because we embed config into package.json. const createJestConfig = require('../utils/createJestConfig'); diff --git a/packages/react-scripts/utils/createJestConfig.js b/packages/react-scripts/utils/createJestConfig.js index cf4852e53..dd7f821a2 100644 --- a/packages/react-scripts/utils/createJestConfig.js +++ b/packages/react-scripts/utils/createJestConfig.js @@ -24,7 +24,7 @@ module.exports = (resolve, rootDir, isEjecting) => { setupFiles: [resolve('config/polyfills.js')], setupTestFrameworkScriptFile: setupTestsFile, testPathIgnorePatterns: [ - '[/\\\\](build|docs|node_modules)[/\\\\]' + '[/\\\\](build|docs|node_modules|scripts)[/\\\\]' ], testEnvironment: 'node', testURL: 'http://localhost',