forked from microsoft/BotFramework-WebChat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
44 lines (44 loc) · 1.3 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
module.exports = {
collectCoverageFrom: [
'<rootDir>/packages/*/src/**/*.{js,jsx,ts,tsx}',
'!<rootDir>/*.{spec,test}.{js,jsx,ts,tsx}',
'!<rootDir>/*.json',
'!<rootDir>/node_modules/**',
'!<rootDir>/packages/playground/**',
'!<rootDir>/samples/**'
],
coverageReporters: ['json', 'lcov', 'text', 'clover', 'cobertura'],
globals: {
npm_package_version: '0.0.0-0.jest'
},
moduleDirectories: ['node_modules', 'packages'],
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx'],
reporters: [
'default',
[
'jest-junit',
{
ancestorSeparator: ' › ',
classNameTemplate: '{filepath}',
includeConsoleOutput: true,
outputDirectory: 'coverage',
suiteName: 'BotFramework-WebChat',
titleTemplate: ({ classname, filename, title }) =>
[filename, classname, title]
.map(value => (value || '').trim())
.filter(value => value)
.join(' › ')
}
]
],
setupFilesAfterEnv: ['<rootDir>/__tests__/setup/preSetupTestFramework.js'],
testPathIgnorePatterns: [
'<rootDir>/__tests__/setup/',
'<rootDir>/packages/directlinespeech/__tests__/utilities/',
'<rootDir>/packages/playground/',
'<rootDir>/samples/'
],
transform: {
'\\.[jt]sx?$': './babel-jest-config.js'
}
};