-
Notifications
You must be signed in to change notification settings - Fork 4k
/
jest.config.json
25 lines (25 loc) · 759 Bytes
/
jest.config.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
{
"rootDir": "../../",
"collectCoverageFrom": [
"(blocks|components|editor|data|utils|edit-post|viewport|plugins|core-data|core-blocks)/**/*.js",
"packages/**/*.js"
],
"moduleNameMapper": {
"@wordpress\\/(blocks|components|editor|data|utils|edit-post|viewport|plugins|core-data|core-blocks)$": "$1",
"@wordpress\\/(blob|date|dom|deprecated|element)$": "packages/$1/src"
},
"preset": "@wordpress/jest-preset-default",
"setupFiles": [
"core-js/fn/symbol/async-iterator",
"<rootDir>/test/unit/setup-blocks.js",
"<rootDir>/test/unit/setup-wp-aliases.js",
"<rootDir>/test/unit/setup-mocks.js"
],
"transform": {
"\\.pegjs$": "<rootDir>/test/unit/pegjs-transform.js"
},
"testPathIgnorePatterns": [
"/node_modules/",
"/test/e2e"
]
}