From 462b727bfffb8ee39714ef8ffa81485bf64d3470 Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Mon, 5 May 2025 11:37:15 +0800 Subject: [PATCH] test: reduce max workers to prevent http 429 error --- jest.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jest.config.js b/jest.config.js index 313b653..f15ac51 100644 --- a/jest.config.js +++ b/jest.config.js @@ -61,7 +61,7 @@ module.exports = { // globals: {}, // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers. - maxWorkers: 8, + maxWorkers: 2, // An array of directory names to be searched recursively up from the requiring module's location moduleDirectories: ['src', 'node_modules'],