mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
25 lines
688 B
JavaScript
25 lines
688 B
JavaScript
module.exports = {
|
|
collectCoverageFrom: [
|
|
'src/**/*.{js,jsx}'
|
|
],
|
|
coveragePathIgnorePatterns: [
|
|
'<rootDir>/src/locales'
|
|
],
|
|
moduleNameMapper: {
|
|
'\\.(css|scss|less)$': '<rootDir>/__mocks__/styleMock.js'
|
|
},
|
|
setupTestFrameworkScriptFile: '<rootDir>/jest.setup.js',
|
|
testMatch: [
|
|
'<rootDir>/__tests__/**/*.{js,jsx}'
|
|
],
|
|
testEnvironment: 'jsdom',
|
|
testURL: 'http://127.0.0.1:3001',
|
|
transform: {
|
|
'^.+\\.(js|jsx)$': 'babel-jest',
|
|
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/__mocks__/fileMock.js',
|
|
},
|
|
transformIgnorePatterns: [
|
|
'[/\\\\]node_modules[/\\\\].+\\.(?!(axios)/)(js|jsx)$'
|
|
]
|
|
};
|