forked from jestjs/jest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: I need to make sure all tests pass on CI (note by cpojer: bypass-lint because of gitignore changes) Closes jestjs#950 Differential Revision: D3275047 fb-gh-sync-id: 27861bb01f7190c2532c6884d953139ce1964ff1 fbshipit-source-id: 27861bb01f7190c2532c6884d953139ce1964ff1
- Loading branch information
Dmitrii Abramov
authored and
Facebook Github Bot 8
committed
May 9, 2016
1 parent
1d778a1
commit 0c9d2b6
Showing
106 changed files
with
210 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
12.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
*/ | ||
'use strict'; | ||
|
||
const vm = require.requireActual('vm'); | ||
|
||
const JSDOMEnvironment = jest.genMockFromModule('jest-environment-jsdom'); | ||
|
||
JSDOMEnvironment.mockImplementation(function(config) { | ||
this.global = { | ||
console: {}, | ||
mockClearTimers: jest.genMockFn(), | ||
JSON, | ||
}; | ||
|
||
const globalValues = Object.assign({}, config.globals); | ||
for (const customGlobalKey in globalValues) { | ||
this.global[customGlobalKey] = globalValues[customGlobalKey]; | ||
} | ||
}); | ||
|
||
JSDOMEnvironment.prototype.runSourceText.mockImplementation( | ||
function(sourceText, filename) { | ||
return vm.runInNewContext(sourceText, this.global, { | ||
filename, | ||
displayErrors: false, | ||
}); | ||
} | ||
); | ||
|
||
module.exports = JSDOMEnvironment; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{ | ||
"name": "jest-cli", | ||
"description": "Painless JavaScript Unit Testing.", | ||
"version": "12.0.2", | ||
"main": "src/jest.js", | ||
"dependencies": { | ||
"chalk": "^1.1.1", | ||
"cover": "^0.2.9", | ||
"graceful-fs": "^4.1.3", | ||
"istanbul": "^0.4.2", | ||
"jest-environment-jsdom": "^11.0.2", | ||
"jest-environment-node": "^11.0.2", | ||
"jest-haste-map": "^11.0.2", | ||
"jest-jasmine1": "^12.0.1", | ||
"jest-jasmine2": "^12.0.1", | ||
"jest-mock": "^11.0.2", | ||
"jest-util": "^12.0.1", | ||
"json-stable-stringify": "^1.0.0", | ||
"lodash.template": "^4.2.4", | ||
"mkdirp": "^0.5.1", | ||
"optimist": "^0.6.1", | ||
"resolve": "^1.1.6", | ||
"sane": "^1.2.0", | ||
"which": "^1.1.1", | ||
"worker-farm": "^1.3.1" | ||
}, | ||
"bin": { | ||
"jest": "./bin/jest.js" | ||
}, | ||
"engines": { | ||
"node": ">= 4" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/facebook/jest" | ||
}, | ||
"scripts": { | ||
"jest-cache": "node bin/jest.js", | ||
"jest-heap-usage": "node bin/jest.js --runInBand --logHeapUsage", | ||
"jest-in-band": "node bin/jest.js --runInBand", | ||
"jest-jasmine1": "node bin/jest.js --testRunner=jasmine1", | ||
"jest-json": "node bin/jest.js --json", | ||
"jest-no-cache": "node bin/jest.js --no-cache", | ||
"jest-node-cache": "node bin/jest.js --no-watchman", | ||
"jest-node-no-cache": "node bin/jest.js --no-watchman --no-cache", | ||
"jest-verbose": "node bin/jest.js --verbose", | ||
"lint": "eslint .", | ||
"test": "./bin/jest.js" | ||
}, | ||
"jest": { | ||
"rootDir": "./src", | ||
"testPathIgnorePatterns": [ | ||
"/__tests__/[^/]*/.+" | ||
], | ||
"testEnvironment": "jest-environment-node", | ||
"globals": { | ||
"CACHE_DIRECTORY": "<rootDir>/../.haste_cache" | ||
} | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/facebook/jest/issues" | ||
}, | ||
"homepage": "http://facebook.github.io/jest/", | ||
"keywords": [ | ||
"facebook", | ||
"jest", | ||
"test", | ||
"unit", | ||
"jasmine", | ||
"mock" | ||
], | ||
"license": "BSD-3-Clause" | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.