Skip to content

Commit 9d2b2bc

Browse files
cpojerFacebook Github Bot 8
authored andcommitted
Add jest package.
Summary: Closes #1037 Differential Revision: D3329437 fbshipit-source-id: 081743ff24497ffeb0d07fff61ff378eececaea1
1 parent 1a1109f commit 9d2b2bc

File tree

4 files changed

+45
-0
lines changed

4 files changed

+45
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## jest-cli 12.1.0
44

5+
* Jest is now also published in the `jest` package on npm.
56
* Added `testRegex` to match for tests outside of specific folders. Deprecated
67
both `testDirectoryName` and `testFileExtensions`.
78
* `it` can now return a Promise for async testing. `pit` was deprecated.

packages/jest/bin/jest.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env node
2+
/**
3+
* Copyright (c) 2014, Facebook, Inc. All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*/
9+
10+
'use strict';
11+
12+
require('jest-cli/bin/jest');

packages/jest/package.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "jest",
3+
"description": "Painless JavaScript Unit Testing.",
4+
"version": "12.1.1",
5+
"main": "src/jest.js",
6+
"dependencies": {
7+
"jest-cli": "^12.1.0"
8+
},
9+
"bin": {
10+
"jest": "./bin/jest.js"
11+
},
12+
"engines": {
13+
"node": ">= 4"
14+
},
15+
"repository": {
16+
"type": "git",
17+
"url": "https://github.com/facebook/jest"
18+
},
19+
"license": "BSD-3-Clause"
20+
}

packages/jest/src/jest.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env node
2+
/**
3+
* Copyright (c) 2014, Facebook, Inc. All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree. An additional grant
7+
* of patent rights can be found in the PATENTS file in the same directory.
8+
*/
9+
10+
'use strict';
11+
12+
module.exports = require('jest-cli');

0 commit comments

Comments
 (0)