test: reduce max workers to prevent http 429 error

This commit is contained in:
EnixCoda 2025-05-05 11:56:03 +08:00
parent 462b727bff
commit ce180f4f66
2 changed files with 2 additions and 2 deletions

View file

@ -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: [

View file

@ -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'],