-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvite.config.mts
More file actions
31 lines (30 loc) · 850 Bytes
/
vite.config.mts
File metadata and controls
31 lines (30 loc) · 850 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
29
30
31
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import { defineConfig } from 'vitest/config';
import os from 'node:os';
export default defineConfig({
test: {
environment: 'node',
globalSetup: './test/utils/global-setup.ts',
testTimeout: 60000,
poolOptions: {
threads: {
minThreads: 1,
// leave half of CPU capacity for Chrome browser processes
maxThreads: Math.max(Math.floor(os.cpus().length / 2), 1),
},
},
coverage: {
enabled: process.env.CI === 'true',
provider: 'istanbul',
include: ['src/**'],
exclude: [
'**/debug-tools/**',
'**/test/**',
'src/browser-scripts/**',
'src/page-objects/browser-scripts.ts',
'src/chrome-launcher.ts',
],
},
},
});