This repository has been archived by the owner on May 30, 2024. It is now read-only.
forked from metabase/metabase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.unit.conf.json
53 lines (53 loc) · 1.78 KB
/
jest.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"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",
"ace/ext-searchbox": "<rootDir>/frontend/test/__mocks__/aceSearchBoxExtMock.js",
"^d3-(.*)$": "<rootDir>/node_modules/d3-$1/dist/d3-$1"
},
"testPathIgnorePatterns": [
"<rootDir>/frontend/test/.*/.*.tz.unit.spec.{js,jsx,ts,tsx}"
],
"testMatch": [
"<rootDir>/**/*.unit.spec.js",
"<rootDir>/**/*.unit.spec.{js,jsx,ts,tsx}"
],
"modulePaths": [
"<rootDir>/frontend/test",
"<rootDir>/frontend/src",
"<rootDir>/enterprise/frontend/src"
],
"setupFiles": [
"<rootDir>/frontend/test/jest-setup.js",
"<rootDir>/frontend/test/metabase-bootstrap.js",
"<rootDir>/frontend/test/register-visualizations.js"
],
"setupFilesAfterEnv": ["@testing-library/jest-dom/extend-expect"],
"globals": {
"ace": {},
"ga": {},
"document": {}
},
"coverageDirectory": "./coverage",
"coverageReporters": ["text", "html", "lcov"],
"collectCoverageFrom": [
"frontend/src/**/*.{js,jsx,ts,tsx}",
"enterprise/frontend/src/**/*.{js,jsx,ts,tsx}",
"**/*.stories.{js,jsx,ts,tsx}"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"/frontend/src/metabase/visualizations/lib/errors.js",
"/frontend/src/cljs/",
"/frontend/src/metabase/internal/",
"/frontend/test/",
".styled.{jsx,tsx}",
".info.js"
],
"testEnvironment": "jest-environment-jsdom",
"watchPlugins": [
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname"
]
}