-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjest.config.js
34 lines (31 loc) · 862 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
27
28
29
30
31
32
33
34
/* --------------------
* livepack module
* Jest config
* ------------------*/
'use strict';
// Exports
module.exports = {
testEnvironment: 'node',
runner: '<rootDir>/test/support/runner.mjs',
coverageDirectory: 'coverage',
coverageProvider: 'v8',
collectCoverageFrom: [
'*.js',
'!.eslintrc.js',
'!jest.config.js',
'!jest-eslint.config.js',
'lib/**/*.js'
],
setupFilesAfterEnv: [
'jest-extended/all',
'jest-expect-arguments',
'<rootDir>/test/support/expect.js',
'<rootDir>/test/support/register.js'
],
testSequencer: '<rootDir>/test/support/sequencer.js',
// Disable babel-jest transformation
transform: {},
// Jest by default uses a number of workers equal to number of CPU cores minus 1.
// Github Actions runners provide 2 cores and running with 2 workers is faster than 1.
...(process.env.CI && {maxWorkers: '100%'})
};