mirror of
https://github.com/jellyfin/jellyfin-vue.git
synced 2024-12-04 04:01:26 +00:00
30 lines
861 B
JavaScript
30 lines
861 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>/middleware/**/*.ts',
|
|
'<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']
|
|
};
|