mirror of
https://gitlab.com/psono/psono-admin-client
synced 2025-04-19 03:22:17 +03:00
39 lines
1.1 KiB
JavaScript
39 lines
1.1 KiB
JavaScript
module.exports = {
|
|
roots: ['<rootDir>/src'],
|
|
collectCoverageFrom: ['src/**/*.{js,jsx}', '!src/**/*.d.ts'],
|
|
setupFiles: ['react-app-polyfill/jsdom'],
|
|
setupFilesAfterEnv: ['<rootDir>/src/setupTests.js'],
|
|
testMatch: ['<rootDir>/src/**/__tests__/**/*.{js,jsx}', '<rootDir>/src/**/*.{spec,test}.{js,jsx}'],
|
|
testEnvironment: 'jsdom',
|
|
transform: {
|
|
'^.+\\.(js|jsx)$': '<rootDir>/node_modules/babel-jest',
|
|
'^.+\\.css$': '<rootDir>/config/jest/cssTransform.js',
|
|
'^(?!.*\\.(js|jsx|css|json)$)': '<rootDir>/config/jest/fileTransform.js',
|
|
},
|
|
transformIgnorePatterns: [
|
|
'[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$',
|
|
'^.+\\.module\\.(css|sass|scss)$',
|
|
],
|
|
modulePaths: [],
|
|
moduleNameMapper: {
|
|
'^react-native$': 'react-native-web',
|
|
'^.+\\.module\\.(css|sass|scss)$': 'identity-obj-proxy',
|
|
'\\.(css|less)$': 'identity-obj-proxy',
|
|
},
|
|
moduleFileExtensions: [
|
|
'js',
|
|
'jsx',
|
|
'json',
|
|
'node',
|
|
],
|
|
watchPlugins: [
|
|
'jest-watch-typeahead/filename',
|
|
'jest-watch-typeahead/testname',
|
|
],
|
|
coverageReporters: [
|
|
'html',
|
|
'text',
|
|
'cobertura',
|
|
'text-summary',
|
|
],
|
|
}; |