mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
22 lines
622 B
JavaScript
22 lines
622 B
JavaScript
module.exports = {
|
|
collectCoverageFrom: [
|
|
'src/**/*.{js,jsx}'
|
|
],
|
|
moduleNameMapper: {
|
|
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/__mocks__/fileMock.js',
|
|
'\\.(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'
|
|
},
|
|
transformIgnorePatterns: [
|
|
'[/\\\\]node_modules[/\\\\].+\\.(?!(axios)/)(js|jsx)$'
|
|
]
|
|
};
|