summaryrefslogtreecommitdiff
path: root/jest.config.js
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2019-02-20 22:01:16 +0100
committerWinnie Hellmann <winnie@gitlab.com>2019-02-21 15:49:48 +0100
commitdb583a3387ee410d6ea1ff597bcc3bfc6dc579d8 (patch)
tree7ec98e84de2b545f9d8a47588b7151181255198a /jest.config.js
parentee74f7b8e5a4a4bdc84a2d50bd34a7bfa6463a3f (diff)
downloadgitlab-ce-db583a3387ee410d6ea1ff597bcc3bfc6dc579d8.tar.gz
Setup Jest for EE
(cherry picked from commit e760abdb081e56d345e58c5a11a38f579b9fc43e)
Diffstat (limited to 'jest.config.js')
-rw-r--r--jest.config.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jest.config.js b/jest.config.js
index 4dab7c2891a..f998e2577a3 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -13,10 +13,11 @@ if (process.env.CI) {
// eslint-disable-next-line import/no-commonjs
module.exports = {
- testMatch: ['<rootDir>/spec/frontend/**/*_spec.js'],
+ testMatch: ['<rootDir>/spec/frontend/**/*_spec.js', '<rootDir>/ee/spec/frontend/**/*_spec.js'],
moduleFileExtensions: ['js', 'json', 'vue'],
moduleNameMapper: {
'^~(.*)$': '<rootDir>/app/assets/javascripts$1',
+ '^ee(.*)$': '<rootDir>/ee/app/assets/javascripts$1',
'^helpers(.*)$': '<rootDir>/spec/frontend/helpers$1',
},
collectCoverageFrom: ['<rootDir>/app/assets/javascripts/**/*.{js,vue}'],