forked from microsoft/BotFramework-Composer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
46 lines (46 loc) · 1.33 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
45
46
module.exports = {
collectCoverageFrom: [
'**/src/**/*.{js,jsx,ts,tsx}',
'!**/*.d.ts',
'!**/node_modules/**',
'!**/__tests__/**',
'!**/demo/**',
'!**/extensions/**/dist/**',
'!**/extensions/**/lib/**',
'!packages/lib/**/lib/**',
'!**/coverage/**',
'!**/jest/**',
'!**/jestMocks/**',
'!**/scripts/**',
'!**/config/**',
'!**/build/**',
'!**/dist/**',
'!**/*config.js',
'!**/gulpfile.js',
'!**/style.js',
'!**/styles.js',
'!**/styles.ts',
'!cypress/',
],
coverageReporters: ['lcov', 'text-summary'],
coverageThreshold: {
global: {
statements: 20,
},
},
moduleNameMapper: {
// Any imports of .scss / .css files will instead import styleMock.js which is an empty object
'\\.(jpg|jpeg|png|svg)$': '<rootDir>/jestMocks/styleMock.js',
'\\.(s)?css$': '<rootDir>/jestMocks/styleMock.js',
},
testPathIgnorePatterns: ['/node_modules/', '/scripts/', '/jestMocks/', '__tests__/setup.(j|t)s', '/cypress/'],
projects: [
'<rootDir>/packages/client',
'<rootDir>/packages/server',
'<rootDir>/packages/extensions/obiformeditor',
'<rootDir>/packages/extensions/visual-designer',
'<rootDir>/packages/lib/code-editor',
'<rootDir>/packages/lib/shared',
'<rootDir>/packages/tools/language-servers/language-generation',
],
};