mirror of
https://github.com/jellyfin/jellyfin-vue.git
synced 2024-12-12 00:06:13 +00:00
29 lines
825 B
JavaScript
29 lines
825 B
JavaScript
module.exports = {
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/$1',
|
|
'^~/(.*)$': '<rootDir>/$1'
|
|
},
|
|
moduleFileExtensions: ['ts', 'js', 'vue', 'json'],
|
|
transform: {
|
|
'^.+\\.ts$': 'ts-jest',
|
|
'^.+\\.js$': 'babel-jest',
|
|
'.*\\.(vue)$': 'vue-jest'
|
|
},
|
|
collectCoverage: true,
|
|
collectCoverageFrom: [
|
|
'<rootDir>/components/**/*.vue',
|
|
'<rootDir>/layouts/**/*.vue',
|
|
'<rootDir>/middleware/**/*.vue',
|
|
'<rootDir>/mixins/**/*.vue',
|
|
'<rootDir>/mixins/**/*.ts',
|
|
'<rootDir>/pages/**/*.vue',
|
|
'<rootDir>/plugins/**/*.ts',
|
|
'<rootDir>/schemes/**/*.ts',
|
|
'<rootDir>/store/**/*.ts',
|
|
'<rootDir>/utils/**/*.ts'
|
|
],
|
|
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
|
|
setupFiles: ['jest-canvas-mock', './jest.setup.ts'],
|
|
coverageReporters: ['text', 'cobertura']
|
|
};
|