forked from deephaven/web-client-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
26 lines (26 loc) · 916 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
module.exports = {
projects: [
{
displayName: 'eslint',
runner: 'jest-runner-eslint',
testMatch: ['<rootDir>/packages/*/src/**/*.{js,jsx,ts,tsx}'],
testPathIgnorePatterns: ['<rootDir>/packages/golden-layout/*'],
},
{
displayName: 'stylelint',
runner: 'jest-runner-stylelint',
testMatch: ['<rootDir>/packages/*/src/**/*.scss'],
testPathIgnorePatterns: ['<rootDir>/packages/golden-layout/*'],
moduleFileExtensions: ['scss'],
},
'<rootDir>/packages/*/jest.config.js',
],
watchPlugins: [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname',
'jest-watch-select-projects',
],
collectCoverage: false,
coverageDirectory: '<rootDir>/coverage/', // This is relative to monorepo root
collectCoverageFrom: ['./src/**/*.{js,ts,jsx,tsx}'], // This is relative to individual project root due to how Jest handles it
};