From dc9a67652d77a56038d3132aab1856e555e4c769 Mon Sep 17 00:00:00 2001 From: Winnie Hellmann <winnie@gitlab.com> Date: Wed, 20 Feb 2019 21:27:23 +0100 Subject: [PATCH] Transpile @gitlab/ui for Jest --- .babelrc.js => babel.config.js | 2 ++ jest.config.js | 1 + 2 files changed, 3 insertions(+) rename .babelrc.js => babel.config.js (94%) diff --git a/.babelrc.js b/babel.config.js similarity index 94% rename from .babelrc.js rename to babel.config.js index 1b05a67354ee..e3de8ef2d833 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 4dab7c2891aa..fac2e435cef1 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)/)'], }; -- GitLab