forked from event-catalog/eventcatalog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
30 lines (28 loc) · 918 Bytes
/
jest.config.js
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
const path = require('path');
const ignorePatterns = [
'/node_modules/',
'__fixtures__',
'/packages/eventcatalog-plugin-generator-asyncapi/lib',
'/packages/eventcatalog/lib/__tests__/assets',
'/packages/eventcatalog-plugin-generator-amazon-eventbridge/src/__tests__/assets',
'/packages/eventcatalog/scripts/__tests__/assets',
];
module.exports = {
rootDir: path.resolve(__dirname),
verbose: true,
testURL: 'http://localhost/',
testEnvironment: 'node',
testPathIgnorePatterns: ignorePatterns,
coveragePathIgnorePatterns: ignorePatterns,
setupFilesAfterEnv: ['<rootDir>/jest/custom_matchers.ts'],
moduleNameMapper: {
'@/lib/(.*)': '<rootDir>/packages/eventcatalog/lib/$1',
},
modulePathIgnorePatterns: [
'<rootDir>/packages/eventcatalog-utils/src/__tests__/assets',
'<rootDir>/packages/*.*/src/__tests__/tmp',
],
transform: {
'^.+\\.[jt]sx?$': 'babel-jest',
},
};