summaryrefslogtreecommitdiff
path: root/babel.config.js
diff options
context:
space:
mode:
authorLukas Eipert <leipert@gitlab.com>2019-02-28 12:34:47 +0100
committerLukas Eipert <leipert@gitlab.com>2019-02-28 12:36:29 +0100
commitc151cebaaa9d8cc779a09eee87ddf57ff0653a59 (patch)
tree86942f0b3d5fa68b724b5f55f3751ed3416be75b /babel.config.js
parent40ec172f75c0c2161c74414c387c802396563ca8 (diff)
downloadgitlab-ce-c151cebaaa9d8cc779a09eee87ddf57ff0653a59.tar.gz
Upgrade jest and related dependencies
This removes other outdated babel@6 dependencies as well. Unfortunately the newer version of vue-jest has a dependency of an older version of ts-jest. In order to satisfy the peerDependency from ts-jest, we are forcing the version@24. The only "breaking" change from ts-jest 23->24 is that it requires a newer version of jest. This might be obsolete soon, as vue-jest plans on switching to babel eventually.
Diffstat (limited to 'babel.config.js')
-rw-r--r--babel.config.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/babel.config.js b/babel.config.js
index e3de8ef2d83..e3db4dcbc9a 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -40,8 +40,7 @@ if (BABEL_ENV === 'karma' || BABEL_ENV === 'coverage') {
// Jest is running in node environment
if (BABEL_ENV === 'jest') {
- plugins.push('transform-es2015-modules-commonjs');
- plugins.push('dynamic-import-node');
+ plugins.push('@babel/plugin-transform-modules-commonjs');
}
module.exports = { presets, plugins };