This commit is contained in:
eric sciple 2020-01-24 12:20:47 -05:00
parent a004f0ae58
commit fc725ba36b
7280 changed files with 19 additions and 1796407 deletions

View file

@ -1,23 +0,0 @@
MIT License
For Jest software
Copyright (c) 2014-present, Facebook, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View file

@ -1,33 +0,0 @@
# babel-preset-jest
> Babel preset for all Jest plugins. This preset is automatically included when using [babel-jest](https://github.com/facebook/jest/tree/master/packages/babel-jest).
## Install
```sh
$ npm install --save-dev babel-preset-jest
```
## Usage
### Via `babel.config.js` (Recommended)
```js
module.exports = {
presets: ['jest'],
};
```
### Via CLI
```sh
$ babel script.js --presets jest
```
### Via Node API
```javascript
require('@babel/core').transform('code', {
presets: ['jest'],
});
```

View file

@ -1,13 +0,0 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
module.exports = () => ({
plugins: [
require.resolve('babel-plugin-jest-hoist'),
require.resolve('@babel/plugin-syntax-object-rest-spread'),
],
});

View file

@ -1,59 +0,0 @@
{
"_args": [
[
"babel-preset-jest@24.6.0",
"/Users/eric/repos/actions/setup-node"
]
],
"_development": true,
"_from": "babel-preset-jest@24.6.0",
"_id": "babel-preset-jest@24.6.0",
"_inBundle": false,
"_integrity": "sha512-pdZqLEdmy1ZK5kyRUfvBb2IfTPb2BUvIJczlPspS8fWmBQslNNDBqVfh7BW5leOVJMDZKzjD8XEyABTk6gQ5yw==",
"_location": "/babel-preset-jest",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "babel-preset-jest@24.6.0",
"name": "babel-preset-jest",
"escapedName": "babel-preset-jest",
"rawSpec": "24.6.0",
"saveSpec": null,
"fetchSpec": "24.6.0"
},
"_requiredBy": [
"/babel-jest"
],
"_resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-24.6.0.tgz",
"_spec": "24.6.0",
"_where": "/Users/eric/repos/actions/setup-node",
"bugs": {
"url": "https://github.com/facebook/jest/issues"
},
"dependencies": {
"@babel/plugin-syntax-object-rest-spread": "^7.0.0",
"babel-plugin-jest-hoist": "^24.6.0"
},
"description": "> Babel preset for all Jest plugins. This preset is automatically included when using [babel-jest](https://github.com/facebook/jest/tree/master/packages/babel-jest).",
"engines": {
"node": ">= 6"
},
"gitHead": "04e6a66d2ba8b18bee080bb28547db74a255d2c7",
"homepage": "https://github.com/facebook/jest#readme",
"license": "MIT",
"main": "index.js",
"name": "babel-preset-jest",
"peerDependencies": {
"@babel/core": "^7.0.0"
},
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/facebook/jest.git",
"directory": "packages/babel-preset-jest"
},
"version": "24.6.0"
}