-
Notifications
You must be signed in to change notification settings - Fork 141
/
jest.integ.config.js
23 lines (22 loc) · 800 Bytes
/
jest.integ.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
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
const path = require('path');
const os = require('os');
module.exports = {
verbose: true,
testEnvironment: 'node',
globals: {
'ts-jest': {
tsconfig: 'tsconfig.integ.json',
},
},
reporters: ['default', 'github-actions'],
testTimeout: 60_000, // 1min
maxWorkers: os.cpus().length * (process.env.GITHUB_ACTION ? 3 : 1),
globalSetup: '<rootDir>/build-tools/integ/global-setup.js',
globalTeardown: '<rootDir>/build-tools/integ/global-teardown.js',
setupFilesAfterEnv: [path.join(__dirname, 'build-tools', 'integ', 'setup.integ.js')],
moduleFileExtensions: ['js', 'ts'],
testRegex: '(/(__integ__|__a11y__)/.*(\\.|/)test)\\.[jt]sx?$',
preset: 'ts-jest',
};