2019-08-21 17:04:26 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2019 CZ.NIC z.s.p.o. (http://www.nic.cz/)
|
|
|
|
*
|
|
|
|
* This is free software, licensed under the GNU General Public License v3.
|
|
|
|
* See /LICENSE for more information.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// https://jestjs.io/docs/en/configuration.html
|
|
|
|
module.exports = {
|
|
|
|
moduleDirectories: [
|
2019-08-27 15:28:29 +02:00
|
|
|
"node_modules",
|
|
|
|
"<rootDir>/src/testUtils",
|
|
|
|
"<rootDir>/src/",
|
2019-08-21 17:04:26 +02:00
|
|
|
],
|
|
|
|
clearMocks: true,
|
2019-08-27 15:28:29 +02:00
|
|
|
collectCoverageFrom: ["src/**/*.{js,jsx}"],
|
|
|
|
coverageDirectory: "coverage",
|
|
|
|
testPathIgnorePatterns: ["/node_modules/", "/__fixtures__/"],
|
2019-08-21 17:04:26 +02:00
|
|
|
verbose: false,
|
|
|
|
setupFilesAfterEnv: [
|
2019-08-27 15:28:29 +02:00
|
|
|
"@testing-library/react/cleanup-after-each",
|
|
|
|
"<rootDir>/src/testUtils/setup",
|
2019-08-21 17:04:26 +02:00
|
|
|
],
|
|
|
|
globals: {
|
2019-08-27 15:28:29 +02:00
|
|
|
TZ: "utc",
|
2019-08-21 17:04:26 +02:00
|
|
|
},
|
2019-09-26 13:09:37 +02:00
|
|
|
transform: {
|
|
|
|
"^.+\\.js$": "babel-jest",
|
|
|
|
"^.+\\.css$": "jest-transform-css",
|
|
|
|
},
|
2019-08-21 17:04:26 +02:00
|
|
|
};
|