frequi_origin/jest.config.js

21 lines
545 B
JavaScript
Raw Normal View History

2020-11-10 19:52:39 +00:00
module.exports = {
2021-11-14 10:50:33 +00:00
// preset: '@vue/cli-plugin-unit-jest/presets/typescript-and-babel',
2021-12-18 10:16:15 +00:00
// testMatch: ['**/tests/unit/**/*.test.[jt]s?(x)'],
globals: {
'ts-jest': {
2021-11-14 10:50:33 +00:00
tsconfig: 'tests/tsconfig.json',
2021-12-18 10:16:15 +00:00
},
},
2021-11-14 10:50:33 +00:00
testPathIgnorePatterns: ['/node_modules/', '/src/', '/cypress/'],
// preset: 'vite-jest',
// preset: 'ts-jest',
moduleFileExtensions: ['js', 'ts', 'json'],
transform: {
'^.+\\.ts$': 'ts-jest',
// '^.+\\.vue$': '@vue/vue2-jest',
},
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
},
2020-11-10 19:52:39 +00:00
};