From ce180f4f6619f8c463868590e02d09b8fb088c00 Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Mon, 5 May 2025 11:56:03 +0800 Subject: [PATCH] test: reduce max workers to prevent http 429 error --- __tests__/jest.config.js | 2 +- jest.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/jest.config.js b/__tests__/jest.config.js index c31f45d..5676c01 100644 --- a/__tests__/jest.config.js +++ b/__tests__/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: [ diff --git a/jest.config.js b/jest.config.js index f15ac51..313b653 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: 2, + maxWorkers: 8, // An array of directory names to be searched recursively up from the requiring module's location moduleDirectories: ['src', 'node_modules'],