-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
35 lines (34 loc) · 1.14 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
const corePkg = require('./packages/core/core/package.json');
const validatorPkg = require('./packages/core/validator/package.json');
const utilsPkg = require('./packages/core/utils/package.json');
const lockServicePkg = require('./packages/services/lock/package.json');
module.exports = {
verbose: true,
projects: [
{
testEnvironment: 'node',
displayName: corePkg.name,
testMatch: ['<rootDir>/packages/core/core/**/?(*.)+(spec|test).[jt]s?(x)']
},
{
testEnvironment: 'node',
displayName: validatorPkg.name,
testMatch: ['<rootDir>/packages/core/validator/**/?(*.)+(spec|test).[jt]s?(x)']
},
{
testEnvironment: 'node',
displayName: utilsPkg.name,
testMatch: ['<rootDir>/packages/core/utils/**/?(*.)+(spec|test).[jt]s?(x)']
},
{
testEnvironment: 'node',
displayName: lockServicePkg.name,
testMatch: ['<rootDir>/packages/services/lock/**/?(*.)+(spec|test).[jt]s?(x)']
},
{
testEnvironment: 'node',
displayName: '@weave-js/lock-store',
testMatch: ['<rootDir>/packages/lock-stores/lock-store/**/?(*.)+(spec|test).[jt]s?(x)']
}
]
};