mirror of
https://github.com/jellyfin/jellyfin-vue.git
synced 2024-12-03 19:50:52 +00:00
21 lines
542 B
JavaScript
21 lines
542 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>/pages/**/*.vue'
|
|
],
|
|
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
|
|
setupFiles: ['jest-canvas-mock'],
|
|
coverageReporters: ['text', 'cobertura']
|
|
};
|