Skip to content

Commit

Permalink
test: 限制 jest maxWorkers 防止 segment 多次初始化
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelovers committed May 10, 2022
1 parent 0f964c0 commit 1a650e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const testExt = [
* @type { import('@jest/types').Config.InitialOptions }
*/
module.exports = {
maxWorkers: 1,
clearMocks: true,
passWithNoTests: true,
moduleFileExtensions: [
Expand Down

0 comments on commit 1a650e7

Please sign in to comment.