Skip to content

Commit 257402d

Browse files
committed
test: update jest config to include i18n directory
1 parent d0c4eb3 commit 257402d

File tree

1 file changed

+39
-7
lines changed

1 file changed

+39
-7
lines changed

jest.config.json

Lines changed: 39 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,47 @@
11
{
22
"preset": "ts-jest",
33
"testEnvironment": "node",
4-
"testMatch": ["<rootDir>/tests/**/*.test.ts"],
4+
"testMatch": [
5+
"<rootDir>/tests/**/*.test.ts"
6+
],
57
"transform": {
6-
"^.+\\.tsx?$": ["ts-jest", { "tsconfig": "tsconfig.json", "diagnotics": true }]
8+
"^.+\\.tsx?$": [
9+
"ts-jest",
10+
{
11+
"tsconfig": "tsconfig.json",
12+
"diagnotics": true
13+
}
14+
]
715
},
8-
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
9-
"testPathIgnorePatterns": ["<rootDir>/node_modules/", "<rootDir>/public/"],
16+
"moduleFileExtensions": [
17+
"ts",
18+
"tsx",
19+
"js",
20+
"jsx",
21+
"json",
22+
"node"
23+
],
24+
"testPathIgnorePatterns": [
25+
"<rootDir>/node_modules/",
26+
"<rootDir>/public/"
27+
],
1028
"collectCoverage": true,
1129
"coverageDirectory": "coverage",
12-
"collectCoverageFrom": ["<rootDir>/api/**/*.ts", "<rootDir>/scripts/**/*.ts", "<rootDir>/src/**/*.ts", "<rootDir>/themes/**/*.ts"],
13-
"coverageReporters": ["lcov", "text", "clover", "html"],
14-
"coveragePathIgnorePatterns": ["<rootDir>/node_modules/", "<rootDir>/public/"]
30+
"collectCoverageFrom": [
31+
"<rootDir>/api/**/*.ts",
32+
"<rootDir>/scripts/**/*.ts",
33+
"<rootDir>/src/**/*.ts",
34+
"<rootDir>/themes/**/*.ts",
35+
"<rootDir>/i18n/**/*.ts"
36+
],
37+
"coverageReporters": [
38+
"lcov",
39+
"text",
40+
"clover",
41+
"html"
42+
],
43+
"coveragePathIgnorePatterns": [
44+
"<rootDir>/node_modules/",
45+
"<rootDir>/public/"
46+
]
1547
}

0 commit comments

Comments
 (0)