-
Notifications
You must be signed in to change notification settings - Fork 703
/
jest.config.js
26 lines (26 loc) · 777 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
module.exports = {
projects: [
{
preset: 'ts-jest',
errorOnDeprecated: true,
runner: '@kayahr/jest-electron-runner',
testEnvironment: '@kayahr/jest-electron-runner/environment',
testMatch: [
'<rootDir>/src/*/!(main)/**/*.(spec|test).{js,ts,tsx}',
'<rootDir>/src/**/renderer.(spec|test).{js,ts,tsx}',
],
setupFilesAfterEnv: ['./src/.jest/setup.ts'],
},
{
preset: 'ts-jest',
errorOnDeprecated: true,
runner: '@kayahr/jest-electron-runner/main',
testEnvironment: 'node',
testMatch: [
'<rootDir>/src/*/main/**/*.(spec|test).{js,ts,tsx}',
'<rootDir>/src/**/main.(spec|test).{js,ts,tsx}',
],
setupFilesAfterEnv: ['./src/.jest/setup.ts'],
},
],
};