forked from botpress/botpress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
32 lines (30 loc) · 888 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
31
32
const path = require('path')
module.exports = {
preset: 'ts-jest',
globals: {
'ts-jest': {
tsConfig: '<rootDir>/src/tsconfig.test.json',
diagnostics: false
}
},
setupFiles: ['<rootDir>/src/bp/jest-before.ts'],
globalSetup: '<rootDir>/src/bp/jest-rewire.ts',
setupFilesAfterEnv: [],
collectCoverage: false,
resetModules: true,
verbose: true,
modulePaths: ['<rootDir>/src/bp/'],
moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx'],
transform: {
'^.+\\.(ts|tsx|js)$': 'ts-jest'
},
resolver: '<rootDir>/src/bp/jest-resolver.js',
moduleNameMapper: {
'^botpress/sdk$': '<rootDir>/src/bp/core/sdk_impl'
},
testMatch: ['**/(src|test)/**/*.test.(ts|js)'],
testPathIgnorePatterns: ['out', 'build', 'node_modules', 'e2e'],
testEnvironment: 'node',
rootDir: '.',
testResultsProcessor: './node_modules/jest-html-reporter'
}