forked from BeanstalkFarms/Beanstalk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.ts
50 lines (47 loc) · 1.37 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
46
47
48
49
50
import type { JestConfigWithTsJest } from "ts-jest";
const jestConfig: JestConfigWithTsJest = {
testSequencer: "<rootDir>/testSequencer.js",
runner: "jest-serial-runner",
projects: [
{
// @ts-ignore
preset: "ts-jest",
displayName: "sdk-wells",
rootDir: "projects/sdk-wells",
testMatch: ["<rootDir>/src/**/?(*.)+(spec|test).[jt]s?(x)", "<rootDir>/test/**/?(*.)+(spec|test).[jt]s?(x)"],
moduleNameMapper: {
"@beanstalk/sdk-wells/(.*)$": "<rootDir>/src/$1",
"^src/(.*)$": "<rootDir>/src/$1"
}
},
{
// @ts-ignore
preset: "ts-jest",
displayName: "sdk",
rootDir: "projects/sdk",
testMatch: ["<rootDir>/src/**/?(*.)+(spec|test).[jt]s?(x)", "<rootDir>/test/**/?(*.)+(spec|test).[jt]s?(x)"],
moduleNameMapper: {
"@sdk/(.*)$": "<rootDir>/src/$1",
"^src/(.*)$": "<rootDir>/src/$1"
}
},
{
// @ts-ignore
preset: "ts-jest",
displayName: "sdk-core",
rootDir: "projects/sdk-core",
testMatch: ["<rootDir>/src/**/?(*.)+(spec|test).[jt]s?(x)"],
moduleNameMapper: {
"^src/(.*)$": "<rootDir>/src/$1"
}
},
{
// @ts-ignore
preset: "ts-jest",
displayName: "examples",
rootDir: "projects/examples",
testMatch: ["<rootDir>/src/**/?(*.)+(spec|test).[jt]s?(x)"]
}
]
};
export default jestConfig;