Skip to content

Commit

Permalink
chore(jest): [RO-26531] Set maxWorkers to 1 to avoid test failures fo…
Browse files Browse the repository at this point in the history
…r server 'address already in use'
  • Loading branch information
otrreeves committed Apr 2, 2024
1 parent 6e50b5c commit fa5d593
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import('jest').Config} */
module.exports = {
collectCoverage: true,
collectCoverageFrom: ['./src/**/*.js'],
Expand All @@ -11,10 +12,10 @@ module.exports = {
statements: 89
}
},
maxWorkers: 1,
moduleFileExtensions: ['js','json'],
rootDir: '.',
testEnvironment: 'node',
testMatch: ['**/*.spec.js'],
testResultsProcessor: 'jest-teamcity-reporter',
setupFiles: ['./test/testSetup.js'],
};
7 changes: 0 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
"eslint": "8.42.0",
"eslint-plugin-node": "11.1.0",
"jest": "29.7.0",
"jest-teamcity-reporter": "0.9.0",
"spur-common": "3.0.2",
"spur-config": "2.0.4"
}
Expand Down

0 comments on commit fa5d593

Please sign in to comment.