www-jrtorres042-github-enterprise-org
/
git_microsoft-powershell_achive-credential_covid-19_live-cam_usaspending-website_diff-1
Public template
forked from fedspendingtransparency/usaspending-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
43 lines (42 loc) · 1.53 KB
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// TODO: [DEV-5897] USAS Front End Test Configuration Update: Functional Components & Redux
// Update test configuration to make testing react functional components easier.
process.env.TZ = 'America/New_York';
module.exports = {
rootDir: ".",
testRegex: "(tests|scripts)/.*-(test)\\.jsx?$",
verbose: true,
bail: false,
collectCoverage: true,
// coverageThreshold: {
// global: {
// branches: 80,
// functions: 80,
// lines: 80,
// statements: -10
// }
// },
collectCoverageFrom: [
"src/js/containers/**/*.{js,jsx}",
"src/js/components/**/*.{js,jsx}",
"src/js/redux/reducers/**/*.{js,jsx}",
"src/js/helpers/**/*.{js,jsx}",
"!node_modules/**",
"!public/**"
],
moduleNameMapper: {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
"<rootDir>/__mocks__/fileMock.js",
"^(data-transparency-ui)$": "<rootDir>/node_modules/data-transparency-ui",
"\\.(css|less|scss)$": "<rootDir>/tests/testResources/stylesStub.js",
".*GlobalConstants$": "<rootDir>/tests/testResources/mockGlobalConstants.js",
'@test-utils': "<rootDir>/tests/testResources/test-utils.js"
},
setupFilesAfterEnv: ["<rootDir>/tests/setup.js"],
transform: {
"^.+\\.jsx$|js$": "babel-jest"
},
transformIgnorePatterns: [
"node_modules/(?!(data-transparency-ui))"
],
modulePaths: ["<rootDir>/tests/testResources", "<rootDir>/src/js"]
};