diff options
Diffstat (limited to 'jest.config.js')
-rw-r--r-- | jest.config.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/jest.config.js b/jest.config.js index 23554a117f6..4dab7c2891a 100644 --- a/jest.config.js +++ b/jest.config.js @@ -14,6 +14,7 @@ if (process.env.CI) { // eslint-disable-next-line import/no-commonjs module.exports = { testMatch: ['<rootDir>/spec/frontend/**/*_spec.js'], + moduleFileExtensions: ['js', 'json', 'vue'], moduleNameMapper: { '^~(.*)$': '<rootDir>/app/assets/javascripts$1', '^helpers(.*)$': '<rootDir>/spec/frontend/helpers$1', @@ -26,4 +27,8 @@ module.exports = { reporters, setupTestFrameworkScriptFile: '<rootDir>/spec/frontend/test_setup.js', restoreMocks: true, + transform: { + '^.+\\.js$': 'babel-jest', + '^.+\\.vue$': 'vue-jest', + }, }; |