-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.js
19 lines (19 loc) · 1.01 KB
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module.exports = {
testMatch: ['**/src/**/*.test.[tj]s?(x)'],
moduleNameMapper: {
// Example: If relying on relative imports in ts files to make test work one might need to map the module here
'^/lib/vendor/(.*)$': '<rootDir>/src/main/resources/lib/vendor/$1',
'^/lib/types/(.*)$': '<rootDir>/src/main/resources/lib/types/$1',
'^/lib/ssb/(.*)$': '<rootDir>/src/main/resources/lib/ssb/$1',
// '^/lib/enonic/react4xp$': '<rootDir>/node_modules/@enonic/react4xp',
// '^/lib/(?!xp)(.*)$': [
// '<rootDir>/src/main/resources/lib/$1',
// '<rootDir>/src/main/resources/lib/types/$1/$1',
// '<rootDir>/src/main/resources/lib/ssb/$1/$1',
// ],
// '^/react4xp/(.*)$': '<rootDir>/src/main/resources/react4xp/$1',
// '^/services/(.*)$': '<rootDir>/src/main/resources/services/$1',
// '^/site/(.*)$': ['<rootDir>/.xp-codegen/site/$1', '<rootDir>/src/main/resources/site/$1'],
// '^/tasks/(.*)$': ['<rootDir>/.xp-codegen/tasks/$1', '<rootDir>/src/main/resources/tasks/$1'],
},
}