-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
26 lines (24 loc) · 822 Bytes
/
jest.config.js
File metadata and controls
26 lines (24 loc) · 822 Bytes
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: [
// 1. Node.js Unit Tests (Business Logic)
{
displayName: 'unit-logic',
testEnvironment: 'node',
testMatch: ['<rootDir>/tests/unit/**/*.spec.ts', '!<rootDir>/tests/unit/components/**'],
preset: 'ts-jest',
globals: {
'ts-jest': {
tsconfig: './tsconfig.jest.json'
}
}
},
// 2. Vue Component Unit Tests
{
displayName: 'unit-vue',
testEnvironment: 'jsdom',
testMatch: ['<rootDir>/tests/unit/components/**/*.spec.ts'],
preset: '@vue/cli-plugin-unit-jest/presets/typescript-and-babel'
}
// 3. Browser XSLT Tests --> Playwright without jest
]
};