mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
ae72d8dce5
* add enzyme test helper with lingui provider * add router context to enzyme test helper * get 18n, router, & config contexts rendering together in enzyme helper * add config context to enzyme helpers * add network and dialog contexts to enzymeHelpers * convert OrganizationForm tests to use new mountWithContexts helper * default all context value keys to default unless provided * document use of mountWithContexts() * fix typo in CONTRIBUTING.md * update Organizations to use mountWithContext
28 lines
747 B
JavaScript
28 lines
747 B
JavaScript
module.exports = {
|
|
collectCoverageFrom: [
|
|
'src/**/*.{js,jsx}'
|
|
],
|
|
coveragePathIgnorePatterns: [
|
|
'<rootDir>/src/locales'
|
|
],
|
|
moduleNameMapper: {
|
|
'\\.(css|scss|less)$': '<rootDir>/__mocks__/styleMock.js'
|
|
},
|
|
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
|
|
snapshotSerializers: [
|
|
"enzyme-to-json/serializer"
|
|
],
|
|
testMatch: [
|
|
'<rootDir>/__tests__/**/*.test.{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)$'
|
|
]
|
|
};
|