forked from Stellar-Uzima/Uzima-Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.unit.config.js
More file actions
38 lines (38 loc) · 1.25 KB
/
Copy pathjest.unit.config.js
File metadata and controls
38 lines (38 loc) · 1.25 KB
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
/** Unit tests only — no PostgreSQL global setup */
module.exports = {
moduleFileExtensions: ['js', 'json', 'ts'],
rootDir: 'src',
testMatch: [
'<rootDir>/modules/users/services/activity-feed.service.spec.ts',
'<rootDir>/leaderboard/leaderboard.service.spec.ts',
'<rootDir>/users/health-profile/health-profile.service.spec.ts',
'<rootDir>/tasks/assignment/bulk-task-assignment.service.spec.ts',
'<rootDir>/modules/admin/admin-tasks.controller.spec.ts',
'<rootDir>/shared/queue/queue.service.spec.ts',
'<rootDir>/shared/notifications/services/email-template.service.spec.ts',
'<rootDir>/notifications/services/notification.service.spec.ts',
'<rootDir>/auth/services/auth.service.spec.ts',
'<rootDir>/auth/auth.service.spec.ts',
'<rootDir>/modules/auth/auth.service.spec.ts',
],
transform: {
'^.+\\.(t|j)s$': 'ts-jest',
},
testEnvironment: 'node',
testTimeout: 30000,
globals: {
'ts-jest': {
tsconfig: {
esModuleInterop: true,
allowSyntheticDefaultImports: true,
},
diagnostics: false,
isolatedModules: true,
},
},
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/$1',
'^@modules/(.*)$': '<rootDir>/modules/$1',
'^@common/(.*)$': '<rootDir>/common/$1',
},
};