Skip to content

Commit

Permalink
Add jest package.
Browse files Browse the repository at this point in the history
Summary: Closes #1037

Differential Revision: D3329437

fbshipit-source-id: 081743ff24497ffeb0d07fff61ff378eececaea1
  • Loading branch information
cpojer authored and Facebook Github Bot 8 committed May 20, 2016
1 parent 1a1109f commit 9d2b2bc
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## jest-cli 12.1.0

* Jest is now also published in the `jest` package on npm.
* Added `testRegex` to match for tests outside of specific folders. Deprecated
both `testDirectoryName` and `testFileExtensions`.
* `it` can now return a Promise for async testing. `pit` was deprecated.
Expand Down
12 changes: 12 additions & 0 deletions packages/jest/bin/jest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env node
/**
* Copyright (c) 2014, 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';

require('jest-cli/bin/jest');
20 changes: 20 additions & 0 deletions packages/jest/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "jest",
"description": "Painless JavaScript Unit Testing.",
"version": "12.1.1",
"main": "src/jest.js",
"dependencies": {
"jest-cli": "^12.1.0"
},
"bin": {
"jest": "./bin/jest.js"
},
"engines": {
"node": ">= 4"
},
"repository": {
"type": "git",
"url": "https://github.com/facebook/jest"
},
"license": "BSD-3-Clause"
}
12 changes: 12 additions & 0 deletions packages/jest/src/jest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env node
/**
* Copyright (c) 2014, 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';

module.exports = require('jest-cli');

0 comments on commit 9d2b2bc

Please sign in to comment.