Update Jest to 21.3.0-beta.8

Reviewed By: davidaurelio

Differential Revision: D6221784

fbshipit-source-id: 189e895378635dd21d14d6fb1f93510a52c90742
This commit is contained in:
Miguel Jimenez Esun 2017-11-08 06:47:17 -08:00 committed by Facebook Github Bot
parent ed55e0a53f
commit 91f724d69d
6 changed files with 411 additions and 325 deletions

View File

@ -3,8 +3,8 @@
"devDependencies": { "devDependencies": {
"babel-core": "^6.23.1", "babel-core": "^6.23.1",
"babel-eslint": "^7.1.1", "babel-eslint": "^7.1.1",
"babel-jest": "^19.0.0",
"babel-generator": "^6.26.0", "babel-generator": "^6.26.0",
"babel-jest": "^19.0.0",
"babel-plugin-syntax-trailing-function-commas": "^6.20.0", "babel-plugin-syntax-trailing-function-commas": "^6.20.0",
"babel-plugin-transform-async-to-generator": "^6.24.1", "babel-plugin-transform-async-to-generator": "^6.24.1",
"babel-plugin-transform-class-properties": "^6.18.0", "babel-plugin-transform-class-properties": "^6.18.0",
@ -27,7 +27,7 @@
"glob": "^7.1.1", "glob": "^7.1.1",
"istanbul-api": "^1.1.0", "istanbul-api": "^1.1.0",
"istanbul-lib-coverage": "^1.0.0", "istanbul-lib-coverage": "^1.0.0",
"jest": "^21", "jest": "21.3.0-beta.8",
"lerna": "^2.0.0-rc.5", "lerna": "^2.0.0-rc.5",
"micromatch": "^2.3.11", "micromatch": "^2.3.11",
"mkdirp": "^0.5.1", "mkdirp": "^0.5.1",
@ -59,7 +59,6 @@
"timers": "fake", "timers": "fake",
"setupFiles": [ "setupFiles": [
"<rootDir>/scripts/setupJest.js" "<rootDir>/scripts/setupJest.js"
], ]
"testEnvironment": "node"
} }
} }

View File

@ -30,9 +30,9 @@
"fbjs": "^0.8.14", "fbjs": "^0.8.14",
"graceful-fs": "^4.1.3", "graceful-fs": "^4.1.3",
"image-size": "^0.6.0", "image-size": "^0.6.0",
"jest-docblock": "^21", "jest-docblock": "21.3.0-beta.8",
"jest-haste-map": "^21", "jest-haste-map": "21.3.0-beta.8",
"jest-worker": "^21.2.1", "jest-worker": "21.3.0-beta.8",
"json-stable-stringify": "^1.0.1", "json-stable-stringify": "^1.0.1",
"json5": "^0.4.0", "json5": "^0.4.0",
"left-pad": "^1.1.3", "left-pad": "^1.1.3",

View File

@ -217,6 +217,8 @@ describe('DeltaCalculator', () => {
const moduleQux = createModule({path: '/qux', name: 'qux'}); const moduleQux = createModule({path: '/qux', name: 'qux'});
mockedDependencies.push(moduleQux);
traverseDependencies.mockReturnValue( traverseDependencies.mockReturnValue(
Promise.resolve({ Promise.resolve({
added: new Set([moduleQux.path]), added: new Set([moduleQux.path]),

View File

@ -14,7 +14,7 @@
jest jest
.mock('fs', () => ({writeFileSync: jest.fn()})) .mock('fs', () => ({writeFileSync: jest.fn()}))
.mock('temp', () => ({path: () => '/arbitrary/path'})) .mock('temp', () => ({path: () => '/arbitrary/path'}))
.mock('jest-worker', () => ({default: jest.fn()})); .mock('jest-worker', () => ({__esModule: true, default: jest.fn()}));
const Transformer = require('../'); const Transformer = require('../');

View File

@ -63,6 +63,7 @@ describe('basic_bundle', () => {
} }
return { return {
__esModule: true,
default: Worker, default: Worker,
}; };
}); });

718
yarn.lock

File diff suppressed because it is too large Load Diff