removed old beta
This commit is contained in:
30
frontend/jest.config.js
Normal file
30
frontend/jest.config.js
Normal file
@@ -0,0 +1,30 @@
|
||||
module.exports = {
|
||||
preset: 'react-app',
|
||||
collectCoverageFrom: [
|
||||
'src/**/*.{js,jsx,ts,tsx}',
|
||||
'!src/index.tsx',
|
||||
'!src/reportWebVitals.ts',
|
||||
'!src/**/*.d.ts',
|
||||
'!src/setupTests.ts',
|
||||
'!src/test-polyfills.js'
|
||||
],
|
||||
coverageReporters: ['text', 'lcov', 'html'],
|
||||
setupFilesAfterEnv: ['<rootDir>/src/setupTests.ts'],
|
||||
testMatch: [
|
||||
'<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}',
|
||||
'<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}'
|
||||
],
|
||||
transformIgnorePatterns: [
|
||||
'node_modules/(?!(axios|@stripe)/)'
|
||||
],
|
||||
moduleNameMapper: {
|
||||
'\\.(css|less|scss|sass)$': 'identity-obj-proxy'
|
||||
},
|
||||
testTimeout: 10000,
|
||||
coverageThreshold: {
|
||||
global: {
|
||||
lines: 80,
|
||||
statements: 80
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user