| 12345678910111213141516171819 |
- module.exports = {
- moduleFileExtensions: ['js', 'json'],
- transform: {
- '^.+\\.js$': 'babel-jest',
- // .vue SFC transform (test-only infra, see __tests__/vue-transform.js)
- '^.+\\.vue$': '<rootDir>/__tests__/vue-transform.js'
- },
- moduleNameMapper: {
- '^@/(.*)$': '<rootDir>/$1'
- },
- testEnvironment: 'node',
- testMatch: ['**/__tests__/**/*.test.js', '**/__tests__/**/*.spec.js'],
- setupFiles: ['<rootDir>/__tests__/setup.js'],
- collectCoverageFrom: [
- 'utils/**/*.js',
- 'store/**/*.js',
- 'config.js'
- ]
- }
|