-
Notifications
You must be signed in to change notification settings - Fork 70
/
jest.config.js
50 lines (37 loc) · 1.25 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
47
48
49
50
/**
* SPDX-FileCopyrightText: © 2020 Liferay, Inc. <https://liferay.com>
* SPDX-License-Identifier: MIT
*/
module.exports = {
modulePathIgnorePatterns: ['<rootDir>/maintenance/', '__fixtures__/.*'],
projects: [
// Projects which require special configuration.
'projects/eslint-plugin/jest.config.js',
'projects/js-themes-toolkit/jest.config.js',
'projects/js-toolkit/jest.config.js',
'projects/npm-tools/packages/npm-scripts/jest.config.js',
// Everything else.
//
// Note the trickiness here: the next project is "recursive";
// when Jest looks at it, it will use the `testMatch` (etc)
// below and ignore the `projects` listing.
'jest.config.js',
],
testMatch: ['**/test/**/*.js'],
testPathIgnorePatterns: [
// Projects in maintenance mode which do not participate in the
// top-level set of Yarn workspaces.
'<rootDir>/maintenance',
// Any project which had special configuration above should be
// ignored here.
'<rootDir>/projects/eslint-plugin',
'<rootDir>/projects/js-themes-toolkit',
'<rootDir>/projects/js-toolkit',
'<rootDir>/projects/npm-tools/packages/npm-scripts',
'<rootDir>/projects/prettier-plugin',
// Third-party.
'<rootDir>/third-party/projects',
// Standard ignores.
'/node_modules/',
],
};