forked from metabase/metabase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.tz.unit.conf.json
28 lines (28 loc) · 1.13 KB
/
jest.tz.unit.conf.json
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
{
"moduleNameMapper": {
"\\.(css|less)$": "<rootDir>/frontend/test/__mocks__/styleMock.js",
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/frontend/test/__mocks__/fileMock.js",
"^promise-loader\\?global\\!metabase-lib\\/metadata\\/utils\\/ga-metadata$": "<rootDir>/frontend/src/metabase-lib/metadata/utils/ga-metadata.js",
"^d3-(.*)$": "<rootDir>/node_modules/d3-$1/dist/d3-$1"
},
"testMatch": ["<rootDir>/frontend/test/**/*.tz.unit.spec.{js,ts,jsx,tsx}"],
"modulePaths": ["<rootDir>/frontend/test", "<rootDir>/frontend/src"],
"setupFiles": [
"<rootDir>/frontend/test/jest-setup.js",
"<rootDir>/frontend/test/metabase-bootstrap.js",
"<rootDir>/frontend/test/register-visualizations.js"
],
"globals": {
"ace": {},
"ga": {},
"document": {}
},
"coverageDirectory": "./",
"coverageReporters": ["text", "json-summary"],
"collectCoverageFrom": ["frontend/src/**/*.{js,ts,jsx,tsx}"],
"coveragePathIgnorePatterns": [
"/node_modules/",
"/frontend/src/metabase/visualizations/lib/errors.js"
],
"testEnvironment": "jest-environment-jsdom"
}