mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
feat: add jest testing for utility functions
This commit is contained in:
19
jest.config.js
Normal file
19
jest.config.js
Normal file
@@ -0,0 +1,19 @@
|
||||
module.exports = {
|
||||
testEnvironment: 'node',
|
||||
moduleFileExtensions: ['js', 'vue'],
|
||||
transform: {
|
||||
'^.+\\.js$': 'esbuild-jest'
|
||||
},
|
||||
moduleNameMapper: {
|
||||
'^@/(.*)$': '<rootDir>/src/$1'
|
||||
},
|
||||
testMatch: ['<rootDir>/src/**/*.{test,spec}.js'],
|
||||
testPathIgnorePatterns: [],
|
||||
watchPathIgnorePatterns: ['<rootDir>/node_modules/', '<rootDir>/build/'],
|
||||
coverageReporters: ['text', 'text-summary'],
|
||||
collectCoverageFrom: [
|
||||
'src/shared/utils/**/*.js',
|
||||
'!src/shared/utils/**/*.test.js',
|
||||
'!src/shared/utils/**/__tests__/**'
|
||||
]
|
||||
};
|
||||
Reference in New Issue
Block a user