diff --git a/CHANGELOG.md b/CHANGELOG.md index e1dfe6228ec6..2fcb06c907f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/packages/jest/bin/jest.js b/packages/jest/bin/jest.js new file mode 100755 index 000000000000..086cba797e6a --- /dev/null +++ b/packages/jest/bin/jest.js @@ -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'); diff --git a/packages/jest/package.json b/packages/jest/package.json new file mode 100644 index 000000000000..7950e23ba7cf --- /dev/null +++ b/packages/jest/package.json @@ -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" +} diff --git a/packages/jest/src/jest.js b/packages/jest/src/jest.js new file mode 100644 index 000000000000..88aa7674471b --- /dev/null +++ b/packages/jest/src/jest.js @@ -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');