-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.e2e-config.ts
41 lines (32 loc) · 1.15 KB
/
jest.e2e-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
import type { Config } from 'jest';
const configuration: Config = {
verbose: true,
moduleFileExtensions: ['js', 'json', 'ts'],
rootDir: '.',
testEnvironment: 'node',
testRegex: '.*\\.test\\.ts$',
testSequencer: './jest.e2e-sequencer.js',
transform: {
'^.+\\.(t|j)s$': 'ts-jest',
},
moduleNameMapper: {
// Authentication Library
'^@library/authentication(|/.*)$': '<rootDir>/libs/authentication/src/$1',
// Authorization Library
'^@library/authorization(|/.*)$': '<rootDir>/libs/authorization/src/$1',
// Configuration Library
'^@library/configuration(|/.*)$': '<rootDir>/libs/configuration/src/$1',
// Database Library
'^@library/database(|/.*)$': '<rootDir>/libs/database/src/$1',
// Mail Library
'^@library/mail(|/.*)$': '<rootDir>/libs/mail/src/$1',
// Password-Confirmation Library
'^@library/password-confirmation(|/.*)$':
'<rootDir>/libs/password-confirmation/src/$1',
// Password-Reset Library
'^@library/password-reset(|/.*)$': '<rootDir>/libs/password-reset/src/$1',
// S3 Library
'^@library/s3(|/.*)$': '<rootDir>/libs/s3/src/$1',
},
};
export default configuration;