Skip to content

Commit

Permalink
test: update jest config to include i18n directory
Browse files Browse the repository at this point in the history
  • Loading branch information
FajarKim committed Oct 26, 2024
1 parent d0c4eb3 commit eddd7fa
Showing 1 changed file with 39 additions and 7 deletions.
46 changes: 39 additions & 7 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,47 @@
{
"preset": "ts-jest",
"testEnvironment": "node",
"testMatch": ["<rootDir>/tests/**/*.test.ts"],
"testMatch": [
"<rootDir>/tests/**/*.test.ts"
],
"transform": {
"^.+\\.tsx?$": ["ts-jest", { "tsconfig": "tsconfig.json", "diagnotics": true }]
"^.+\\.tsx?$": [
"ts-jest",
{
"tsconfig": "tsconfig.json",
"diagnotics": true
}
]
},
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
"testPathIgnorePatterns": ["<rootDir>/node_modules/", "<rootDir>/public/"],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
"testPathIgnorePatterns": [
"<rootDir>/node_modules/",
"<rootDir>/public/"
],
"collectCoverage": true,
"coverageDirectory": "coverage",
"collectCoverageFrom": ["<rootDir>/api/**/*.ts", "<rootDir>/scripts/**/*.ts", "<rootDir>/src/**/*.ts", "<rootDir>/themes/**/*.ts"],
"coverageReporters": ["lcov", "text", "clover", "html"],
"coveragePathIgnorePatterns": ["<rootDir>/node_modules/", "<rootDir>/public/"]
"collectCoverageFrom": [
"<rootDir>/api/**/*.ts",
"<rootDir>/scripts/**/*.ts",
"<rootDir>/src/**/*.ts",
"<rootDir>/themes/**/*.ts",
"<rootDir>/i18n/**/*.ts"
],
"coverageReporters": [
"lcov",
"text",
"clover",
"html"
],
"coveragePathIgnorePatterns": [
"<rootDir>/node_modules/",
"<rootDir>/public/"
]
}

1 comment on commit eddd7fa

@vercel
Copy link

@vercel vercel bot commented on eddd7fa Oct 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.