Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: This polishes the jasmine2 integration from the open source PR ( #330 and D2662964 ): * Clean up the code, use const/let and classes (I think this is the last holdout in jest to use old patterns? Finally!). Also reformatted a bunch of code with an up-to-date code-style * Add a `testRunner` option to switch to jasmine2 and resolve the `<rootDir>` correctly (slightly messy, but I'll redo configs and this is how I want it to work in the end). * Moved a bunch of files around so they make more sense. Reorganized a bunch of stuff, this should now make it more apparent that the test runners are modular and can be switched out. In the future, we'll be able to do `npm install jest-jasmine2`, for example, to get jasmine support. * Removed the jasmine2 boot file, all of this can be inlined. * Changed package.json to run the jest tests both for jasmine1 and jasmine2 * Changed the CLI to add the name of the test runner * Snuck in a small change to the moduleMocker to add WeakMap to the default unmocked collections (cc yungsters). The plan is for jest 1.0 to switch to jasmine2 by default. public Reviewed By: voideanvalue Differential Revision: D2667164 fb-gh-sync-id: 025ccf685abb550a6eaf9e68c478bc718cba546c
- Loading branch information
Showing
19 changed files
with
467 additions
and
562 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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.