Merge branch 'winh-jest-ee_else_ce' into 'master'
Add ee_else_ce to Jest config See merge request gitlab-org/gitlab-ce!27040
This commit is contained in:
commit
8c28813866
1 changed files with 7 additions and 4 deletions
|
@ -16,10 +16,13 @@ module.exports = {
|
|||
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',
|
||||
'^vendor(.*)$': '<rootDir>/vendor/assets/javascripts$1',
|
||||
'^~(/.*)$': '<rootDir>/app/assets/javascripts$1',
|
||||
'^ee(/.*)$': '<rootDir>/ee/app/assets/javascripts$1',
|
||||
'^ee_else_ce(/.*)$': IS_EE
|
||||
? '<rootDir>/ee/app/assets/javascripts$1'
|
||||
: '<rootDir>/app/assets/javascripts$1',
|
||||
'^helpers(/.*)$': '<rootDir>/spec/frontend/helpers$1',
|
||||
'^vendor(/.*)$': '<rootDir>/vendor/assets/javascripts$1',
|
||||
'\\.(jpg|jpeg|png|svg)$': '<rootDir>/spec/frontend/__mocks__/file_mock.js',
|
||||
},
|
||||
collectCoverageFrom: ['<rootDir>/app/assets/javascripts/**/*.{js,vue}'],
|
||||
|
|
Loading…
Reference in a new issue