-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.ts
73 lines (68 loc) · 1.66 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/** @format */
import { Config } from '@jest/types';
const config: Config.InitialOptions = {
verbose: true,
displayName: {
name: 'arcane-web',
color: 'black',
},
transform: {
'^.+\\.(t|j)sx?$': 'ts-jest',
},
collectCoverage: true,
coverageThreshold: {
global: {
lines: 90,
},
},
projects: [
{
testEnvironment: 'jsdom',
globals: {
'ts-jest': {
tsconfig: '<rootDir>/libs/alchemy/tsconfig.json',
babelConfig: {
presets: ['babel-preset-solid', '@babel/preset-env'],
},
},
},
moduleNameMapper: {
'solid-js/web': '<rootDir>/node_modules/solid-js/web/dist/web.cjs',
'solid-js': '<rootDir>/node_modules/solid-js/dist/solid.cjs',
},
displayName: {
name: 'alchemy',
color: 'yellowBright',
},
transform: {
'^.+\\.(t|j)sx?$': 'ts-jest',
},
setupFilesAfterEnv: ['./jest-setup.ts'],
setupFiles: ['regenerator-runtime'],
testMatch: ['<rootDir>/libs/alchemy/**/?(*.)+(spec|test).[jt]s?(x)'],
},
{
displayName: {
name: 'arcane-flow',
color: 'magentaBright',
},
testEnvironment: 'node',
transform: {
'^.+\\.(t|j)sx?$': 'ts-jest',
},
testMatch: ['<rootDir>/libs/arcane-flow/**/?(*.)+(spec|test).[jt]s?(x)'],
},
{
displayName: {
name: 'arcane-auth',
color: 'magentaBright',
},
testEnvironment: 'node',
transform: {
'^.+\\.(t|j)sx?$': 'ts-jest',
},
testMatch: ['<rootDir>/libs/arcane-auth/**/?(*.)+(spec|test).[jt]s?(x)'],
},
],
};
export default config;