forked from botpress/botpress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.e2e.config.ts
26 lines (23 loc) · 927 Bytes
/
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
import type { Config } from '@jest/types'
import { defaults as tsjPreset } from 'ts-jest/presets'
process.env.JEST_PUPPETEER_CONFIG = "packages/bp/e2e/jest-puppeteer.config.js"
const config: Config.InitialOptions = {
rootDir: 'packages/bp/e2e',
preset: 'jest-puppeteer',
transform: {
...tsjPreset.transform
},
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
globalSetup: 'jest-environment-puppeteer/setup',
globalTeardown: 'jest-environment-puppeteer/teardown',
collectCoverage: false,
resetModules: true,
modulePaths: ['<rootDir>../src/bp/'],
moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx'],
testMatch: ['**/*.test.(ts|js)'],
testPathIgnorePatterns: ['out', 'build', 'node_modules', 'src/bp'],
testEnvironment: '<rootDir>/jest.environment.ts',
testResultsProcessor: '<rootDir>/../../../node_modules/jest-html-reporter',
testRunner: 'jest-circus/runner'
}
export default config