-
Notifications
You must be signed in to change notification settings - Fork 8
/
jest.config.ts
45 lines (41 loc) · 1.33 KB
/
jest.config.ts
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
import type { Config } from "jest"
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { compilerOptions } = require("./tsconfig")
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
const config: Config = {
verbose: true,
collectCoverage: true,
collectCoverageFrom: [
"**/*.{js,jsx,ts,tsx}",
"!**/docs/**",
"!**/node_modules/**",
"!**/coverage/**",
"!**/dist/**",
"!**/nibiru/**",
"!**/index.*.ts",
"!**/index.ts",
"!**/src/protojs/**",
"!jest.config.ts",
"!**/src/gql/utils/generated.ts",
"!**/src/sdk/utils/testutil.ts",
"!**/src/sdk/core/cosmwasmclient.ts", // Implementation from Cosmjs
"!**/src/sdk/core/signingcosmwasmclient.ts", // Implementation from Cosmjs
],
testPathIgnorePatterns: ["/node_modules/", "/dist/", "/nibiru/"],
coverageReporters: ["json-summary", "text", "html", "lcov"],
globals: {
window: {
location: {},
},
},
moduleDirectories: ["<rootDir>", "node_modules", "src"],
moduleFileExtensions: ["js", "jsx", "ts", "tsx"],
modulePaths: [compilerOptions.baseUrl], // <-- This will be set to 'baseUrl' value
roots: ["<rootDir>"],
preset: "ts-jest",
testEnvironment: "node",
reporters: ["default"],
testTimeout: 120000,
}
export default config