summaryrefslogtreecommitdiff
path: root/jest.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 /jest.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 'jest.config.js')
-rw-r--r--jest.config.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jest.config.js b/jest.config.js
index 225f01de303..4e346005b8a 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -29,7 +29,7 @@ module.exports = {
cacheDirectory: '<rootDir>/tmp/cache/jest',
modulePathIgnorePatterns: ['<rootDir>/.yarn-cache/'],
reporters,
- setupTestFrameworkScriptFile: '<rootDir>/spec/frontend/test_setup.js',
+ setupFilesAfterEnv: ['<rootDir>/spec/frontend/test_setup.js'],
restoreMocks: true,
transform: {
'^.+\\.(gql|graphql)$': 'jest-transform-graphql',