Skip to content

Commit

Permalink
chore: Limit tests concurrency (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
jperals authored Jun 18, 2024
1 parent b380e14 commit 4e15bb5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions vite.config.e2e-functional.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import os from "node:os";
import { defineConfig } from "vite";
import base from "./vite.config.mjs";

Expand All @@ -13,5 +14,12 @@ export default defineConfig({
include: ["./test/functional/**/*.test.ts"],
setupFiles: ["./test/test-setup.ts"],
globalSetup: ["./test/global-setup.ts"],
poolOptions: {
threads: {
minThreads: 1,
// leave half of CPU capacity for Chrome browser processes
maxThreads: Math.max(Math.floor(os.cpus().length / 2), 1),
},
},
},
});

0 comments on commit 4e15bb5

Please sign in to comment.