forked from bunqCommunity/bunqJSClient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
27 lines (24 loc) · 827 Bytes
/
jest.config.js
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
module.exports = {
// limit jest to the following patterns/folders
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
moduleFileExtensions: ["ts", "tsx", "js", "jsx"],
testPathIgnorePatterns: [
"/node_modules/",
"/dist/",
".html",
"/tests/custom-db/*",
"/tests/TestHelpers/*",
"/tests/TestData/*",
"/package.json"
],
// coverage options
collectCoverage: true,
coverageReporters: process.env.DEV_MODE === "true" ? ["json", "lcov"] : ["json", "lcov", "text"],
coverageDirectory: "coverage",
coveragePathIgnorePatterns: ["src/Helpers/FileReaderHelper.ts", "src/Stores/LocalstorageStore.ts"],
testEnvironment: "node",
// add typescript support to jest
transform: {
"^.+\\.tsx?$": "ts-jest"
}
};