Welcome to mirror list, hosted at ThFree Co, Russian Federation.

jest.config.js - gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2a0cbafab50e3913635fb69351eb690d471264f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const moduleNameMapper = {
  '^~(/.*)$': '<rootDir>/content/frontend$1',
};

module.exports = {
  testMatch: ['<rootDir>/spec/frontend/**/**/*_spec.js'],
  moduleFileExtensions: ['js', 'json', 'vue'],
  moduleNameMapper,
  cacheDirectory: '<rootDir>/tmp/cache/jest',
  restoreMocks: true,
  transform: {
    '^.+\\.js$': 'babel-jest',
    '^.+\\.vue$': 'vue-jest',
    '^.+\\.svg$': 'vue-jest',
  },
  transformIgnorePatterns: ['node_modules/(?!(@gitlab/(ui|svgs)|bootstrap-vue)/)'],
};