forked from iOfficeAI/AionUi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
23 lines (23 loc) · 882 Bytes
/
jest.config.js
File metadata and controls
23 lines (23 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>/src', '<rootDir>/tests'],
testMatch: ['**/tests/**/*.ts', '**/__tests__/**/*.ts', '**/?(*.)+(spec|test).ts'],
transform: {
'^.+\\.ts$': 'ts-jest',
},
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
'^@process/(.*)$': '<rootDir>/src/process/$1',
'^@renderer/(.*)$': '<rootDir>/src/renderer/$1',
'^@worker/(.*)$': '<rootDir>/src/worker/$1',
'^@mcp/(.*)$': '<rootDir>/src/common/$1',
'^@mcp/models/(.*)$': '<rootDir>/src/common/models/$1',
'^@mcp/types/(.*)$': '<rootDir>/src/common/$1',
},
collectCoverageFrom: ['src/**/*.ts', '!src/**/*.d.ts', '!src/**/*.test.ts', '!src/**/*.spec.ts'],
setupFilesAfterEnv: ['<rootDir>/tests/jest.setup.ts'],
testPathIgnorePatterns: ['<rootDir>/tests/jest.setup.ts'],
testTimeout: 10000,
verbose: true,
};