summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2019-02-20 21:27:23 +0100
committerWinnie Hellmann <winnie@gitlab.com>2019-02-21 11:02:32 +0100
commitdc9a67652d77a56038d3132aab1856e555e4c769 (patch)
tree4f6723bea60aec03c3bbbb03e9306eb9603ead45
parent8d74aab4289fb7a050e0163bf1affa9e62bb079e (diff)
downloadgitlab-ce-dc9a67652d77a56038d3132aab1856e555e4c769.tar.gz
Transpile @gitlab/ui for Jest
-rw-r--r--babel.config.js (renamed from .babelrc.js)2
-rw-r--r--jest.config.js1
2 files changed, 3 insertions, 0 deletions
diff --git a/.babelrc.js b/babel.config.js
index 1b05a67354e..e3de8ef2d83 100644
--- a/.babelrc.js
+++ b/babel.config.js
@@ -1,3 +1,5 @@
+/* eslint-disable import/no-commonjs, filenames/match-regex */
+
const BABEL_ENV = process.env.BABEL_ENV || process.env.NODE_ENV || null;
const presets = [
diff --git a/jest.config.js b/jest.config.js
index 4dab7c2891a..fac2e435cef 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -31,4 +31,5 @@ module.exports = {
'^.+\\.js$': 'babel-jest',
'^.+\\.vue$': 'vue-jest',
},
+ transformIgnorePatterns: ['node_modules/(?!(@gitlab/ui)/)'],
};