Update jest to 0.7.1

Reviewed By: frantic

Differential Revision: D2614935

fb-gh-sync-id: 64cc4fb439f0c53f0eb0588c22e0291813a7e334
This commit is contained in:
Christoph Pojer 2015-11-04 14:33:48 -08:00 committed by facebook-github-bot-7
parent 59ed90dd5f
commit 7041a22bd0
4 changed files with 35 additions and 43 deletions

View File

@ -9,7 +9,7 @@
'use strict'; 'use strict';
require('mock-modules').autoMockOff(); jest.autoMockOff();
var parseErrorStack = require('parseErrorStack'); var parseErrorStack = require('parseErrorStack');

65
npm-shrinkwrap.json generated
View File

@ -2634,14 +2634,9 @@
"resolved": "https://registry.npmjs.org/immutable/-/immutable-3.7.5.tgz" "resolved": "https://registry.npmjs.org/immutable/-/immutable-3.7.5.tgz"
}, },
"jest-cli": { "jest-cli": {
"version": "0.6.1", "version": "0.7.1",
"from": "jest-cli@0.6.1", "from": "jest-cli@0.7.1",
"dependencies": { "dependencies": {
"coffee-script": {
"version": "1.10.0",
"from": "coffee-script@>=1.10.0 <2.0.0",
"resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.10.0.tgz"
},
"cover": { "cover": {
"version": "0.2.9", "version": "0.2.9",
"from": "cover@>=0.2.9 <0.3.0", "from": "cover@>=0.2.9 <0.3.0",
@ -2677,9 +2672,9 @@
} }
}, },
"diff": { "diff": {
"version": "2.1.3", "version": "2.2.0",
"from": "diff@>=2.1.1 <3.0.0", "from": "diff@>=2.1.1 <3.0.0",
"resolved": "https://registry.npmjs.org/diff/-/diff-2.1.3.tgz" "resolved": "https://registry.npmjs.org/diff/-/diff-2.2.0.tgz"
}, },
"istanbul": { "istanbul": {
"version": "0.3.22", "version": "0.3.22",
@ -2692,9 +2687,9 @@
"resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.7.tgz" "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.7.tgz"
}, },
"async": { "async": {
"version": "1.4.2", "version": "1.5.0",
"from": "async@>=1.0.0 <2.0.0", "from": "async@>=1.0.0 <2.0.0",
"resolved": "https://registry.npmjs.org/async/-/async-1.4.2.tgz" "resolved": "https://registry.npmjs.org/async/-/async-1.5.0.tgz"
}, },
"escodegen": { "escodegen": {
"version": "1.7.0", "version": "1.7.0",
@ -2833,9 +2828,9 @@
} }
}, },
"handlebars": { "handlebars": {
"version": "4.0.3", "version": "4.0.4",
"from": "handlebars@>=4.0.1 <5.0.0", "from": "handlebars@>=4.0.1 <5.0.0",
"resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.0.3.tgz" "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.0.4.tgz"
}, },
"js-yaml": { "js-yaml": {
"version": "3.4.3", "version": "3.4.3",
@ -2843,9 +2838,9 @@
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.4.3.tgz", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.4.3.tgz",
"dependencies": { "dependencies": {
"argparse": { "argparse": {
"version": "1.0.2", "version": "1.0.3",
"from": "argparse@>=1.0.2 <2.0.0", "from": "argparse@>=1.0.2 <2.0.0",
"resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.2.tgz", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.3.tgz",
"dependencies": { "dependencies": {
"lodash": { "lodash": {
"version": "3.10.1", "version": "3.10.1",
@ -2897,18 +2892,6 @@
} }
} }
}, },
"jasmine-only": {
"version": "0.1.1",
"from": "jasmine-only@>=0.1.1 <0.2.0",
"resolved": "https://registry.npmjs.org/jasmine-only/-/jasmine-only-0.1.1.tgz",
"dependencies": {
"coffee-script": {
"version": "1.6.3",
"from": "coffee-script@>=1.6.3 <1.7.0",
"resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.6.3.tgz"
}
}
},
"jasmine-pit": { "jasmine-pit": {
"version": "2.0.2", "version": "2.0.2",
"from": "jasmine-pit@>=2.0.2 <3.0.0", "from": "jasmine-pit@>=2.0.2 <3.0.0",
@ -2925,14 +2908,14 @@
"resolved": "https://registry.npmjs.org/abab/-/abab-1.0.0.tgz" "resolved": "https://registry.npmjs.org/abab/-/abab-1.0.0.tgz"
}, },
"acorn": { "acorn": {
"version": "2.4.0", "version": "2.5.2",
"from": "acorn@>=2.4.0 <3.0.0", "from": "acorn@>=2.4.0 <3.0.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-2.4.0.tgz" "resolved": "https://registry.npmjs.org/acorn/-/acorn-2.5.2.tgz"
}, },
"acorn-globals": { "acorn-globals": {
"version": "1.0.6", "version": "1.0.9",
"from": "acorn-globals@>=1.0.4 <2.0.0", "from": "acorn-globals@>=1.0.4 <2.0.0",
"resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-1.0.6.tgz" "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-1.0.9.tgz"
}, },
"browser-request": { "browser-request": {
"version": "0.3.3", "version": "0.3.3",
@ -3114,9 +3097,9 @@
"resolved": "https://registry.npmjs.org/bl/-/bl-1.0.0.tgz", "resolved": "https://registry.npmjs.org/bl/-/bl-1.0.0.tgz",
"dependencies": { "dependencies": {
"readable-stream": { "readable-stream": {
"version": "2.0.3", "version": "2.0.4",
"from": "readable-stream@>=2.0.0 <2.1.0", "from": "readable-stream@>=2.0.0 <2.1.0",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.3.tgz", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.4.tgz",
"dependencies": { "dependencies": {
"core-util-is": { "core-util-is": {
"version": "1.0.1", "version": "1.0.1",
@ -3173,9 +3156,9 @@
"resolved": "https://registry.npmjs.org/form-data/-/form-data-1.0.0-rc3.tgz", "resolved": "https://registry.npmjs.org/form-data/-/form-data-1.0.0-rc3.tgz",
"dependencies": { "dependencies": {
"async": { "async": {
"version": "1.4.2", "version": "1.5.0",
"from": "async@>=1.4.0 <2.0.0", "from": "async@>=1.4.0 <2.0.0",
"resolved": "https://registry.npmjs.org/async/-/async-1.4.2.tgz" "resolved": "https://registry.npmjs.org/async/-/async-1.5.0.tgz"
} }
} }
}, },
@ -3249,9 +3232,9 @@
"resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz" "resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz"
}, },
"boom": { "boom": {
"version": "2.9.0", "version": "2.10.1",
"from": "boom@>=2.8.0 <3.0.0", "from": "boom@>=2.8.0 <3.0.0",
"resolved": "https://registry.npmjs.org/boom/-/boom-2.9.0.tgz" "resolved": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz"
}, },
"cryptiles": { "cryptiles": {
"version": "2.0.5", "version": "2.0.5",
@ -3271,9 +3254,9 @@
"resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz" "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz"
}, },
"stringstream": { "stringstream": {
"version": "0.0.4", "version": "0.0.5",
"from": "stringstream@>=0.0.4 <0.1.0", "from": "stringstream@>=0.0.4 <0.1.0",
"resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.4.tgz" "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz"
}, },
"combined-stream": { "combined-stream": {
"version": "1.0.5", "version": "1.0.5",
@ -3337,9 +3320,9 @@
"resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-2.0.0.tgz" "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-2.0.0.tgz"
}, },
"xtend": { "xtend": {
"version": "4.0.0", "version": "4.0.1",
"from": "xtend@>=4.0.0 <5.0.0", "from": "xtend@>=4.0.0 <5.0.0",
"resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.0.tgz" "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz"
} }
} }
}, },

View File

@ -91,7 +91,7 @@
"yeoman-generator": "^0.20.3" "yeoman-generator": "^0.20.3"
}, },
"devDependencies": { "devDependencies": {
"jest-cli": "0.6.1", "jest-cli": "0.7.1",
"babel-eslint": "4.1.1", "babel-eslint": "4.1.1",
"eslint": "1.3.1", "eslint": "1.3.1",
"eslint-plugin-react": "3.3.1", "eslint-plugin-react": "3.3.1",

View File

@ -22,6 +22,7 @@ var net = require('net');
describe('SocketServer', () => { describe('SocketServer', () => {
let netServer; let netServer;
let bunser; let bunser;
let processOn;
beforeEach(() => { beforeEach(() => {
const {EventEmitter} = require.requireActual('events'); const {EventEmitter} = require.requireActual('events');
@ -32,6 +33,14 @@ describe('SocketServer', () => {
bunser = new EventEmitter(); bunser = new EventEmitter();
bser.BunserBuf.mockImpl(() => bunser); bser.BunserBuf.mockImpl(() => bunser);
bser.dumpToBuffer.mockImpl((a) => a); bser.dumpToBuffer.mockImpl((a) => a);
// Don't attach `process.on('exit')` handlers directly from SocketServer
processOn = process.on;
process.on = jest.genMockFn();
});
afterEach(() => {
process.on = processOn;
}); });
pit('create a server', () => { pit('create a server', () => {