aboutsummaryrefslogtreecommitdiff
path: root/node_modules/babel-preset-jest
diff options
context:
space:
mode:
authorJoel Kronqvist <work.joelkronqvist@pm.me>2022-03-11 20:46:06 +0200
committerJoel Kronqvist <work.joelkronqvist@pm.me>2022-03-11 20:46:06 +0200
commit080c5819d87b933816d724a83f3bf4f1686770a7 (patch)
tree4a2ccc68b27edf7d4cbc586c932cc7542b655e19 /node_modules/babel-preset-jest
parent5ac7049a9d30733165cc212dee308163c2a14644 (diff)
parentd003b82235a9329f912522a2f70aa950dfce4998 (diff)
downloadLYLLRuoka-080c5819d87b933816d724a83f3bf4f1686770a7.tar.gz
LYLLRuoka-080c5819d87b933816d724a83f3bf4f1686770a7.zip
Merge branch 'master' of https://github.com/JoelHMikael/FoodJS
Updating remote changes
Diffstat (limited to 'node_modules/babel-preset-jest')
-rw-r--r--node_modules/babel-preset-jest/LICENSE21
-rw-r--r--node_modules/babel-preset-jest/README.md33
-rw-r--r--node_modules/babel-preset-jest/index.js14
-rw-r--r--node_modules/babel-preset-jest/package.json29
4 files changed, 97 insertions, 0 deletions
diff --git a/node_modules/babel-preset-jest/LICENSE b/node_modules/babel-preset-jest/LICENSE
new file mode 100644
index 0000000..b96dcb0
--- /dev/null
+++ b/node_modules/babel-preset-jest/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Facebook, Inc. and its affiliates.
+
+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.
diff --git a/node_modules/babel-preset-jest/README.md b/node_modules/babel-preset-jest/README.md
new file mode 100644
index 0000000..4457c08
--- /dev/null
+++ b/node_modules/babel-preset-jest/README.md
@@ -0,0 +1,33 @@
+# babel-preset-jest
+
+> Babel preset for all Jest plugins. This preset is automatically included when using [babel-jest](https://github.com/facebook/jest/tree/main/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'],
+});
+```
diff --git a/node_modules/babel-preset-jest/index.js b/node_modules/babel-preset-jest/index.js
new file mode 100644
index 0000000..911bbf8
--- /dev/null
+++ b/node_modules/babel-preset-jest/index.js
@@ -0,0 +1,14 @@
+/**
+ * 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.
+ */
+
+const jestPreset = {
+ plugins: [require.resolve('babel-plugin-jest-hoist')],
+ presets: [require.resolve('babel-preset-current-node-syntax')],
+};
+
+// @babel/core requires us to export a function
+module.exports = () => jestPreset;
diff --git a/node_modules/babel-preset-jest/package.json b/node_modules/babel-preset-jest/package.json
new file mode 100644
index 0000000..9a67daa
--- /dev/null
+++ b/node_modules/babel-preset-jest/package.json
@@ -0,0 +1,29 @@
+{
+ "name": "babel-preset-jest",
+ "version": "27.5.1",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/facebook/jest.git",
+ "directory": "packages/babel-preset-jest"
+ },
+ "license": "MIT",
+ "main": "./index.js",
+ "exports": {
+ ".": "./index.js",
+ "./package.json": "./package.json"
+ },
+ "dependencies": {
+ "babel-plugin-jest-hoist": "^27.5.1",
+ "babel-preset-current-node-syntax": "^1.0.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ },
+ "engines": {
+ "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0"
+ },
+ "publishConfig": {
+ "access": "public"
+ },
+ "gitHead": "67c1aa20c5fec31366d733e901fee2b981cb1850"
+}