aboutsummaryrefslogtreecommitdiff
path: root/node_modules/babel-preset-jest/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/babel-preset-jest/index.js')
-rw-r--r--node_modules/babel-preset-jest/index.js14
1 files changed, 14 insertions, 0 deletions
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;