-
Notifications
You must be signed in to change notification settings - Fork 246
Expand file tree
/
Copy pathjest.visual.config.js
More file actions
28 lines (27 loc) · 929 Bytes
/
Copy pathjest.visual.config.js
File metadata and controls
28 lines (27 loc) · 929 Bytes
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
// 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: 'allure-jest/node',
testEnvironmentOptions: {
resultsDir: 'allure-results',
},
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
tsconfig: 'tsconfig.visual.json',
},
],
},
reporters: ['default', 'github-actions'],
testTimeout: 240_000, // 4min — pages can be tall and slow to capture
maxWorkers: os.cpus().length * (process.env.GITHUB_ACTION ? 3 : 1),
globalSetup: '<rootDir>/build-tools/visual/global-setup.js',
globalTeardown: '<rootDir>/build-tools/visual/global-teardown.js',
setupFilesAfterEnv: [path.join(__dirname, 'build-tools', 'visual', 'setup.js')],
moduleFileExtensions: ['js', 'ts'],
testMatch: ['<rootDir>/test/visual/**/*.test.ts'],
};