Set jest timeout globally for all tests as tests break in GH actions due to timeout

This commit is contained in:
simojenki
2022-10-20 13:29:33 +11:00
parent 91995678a4
commit 719fd998b1
3 changed files with 2 additions and 5 deletions

View File

@@ -5,5 +5,6 @@ module.exports = {
modulePathIgnorePatterns: [ modulePathIgnorePatterns: [
'<rootDir>/node_modules', '<rootDir>/node_modules',
'<rootDir>/build', '<rootDir>/build',
], ],
testTimeout: Number.parseInt(process.env["JEST_TIMEOUT"] || "5000")
}; };

View File

@@ -167,8 +167,6 @@ describe("RangeBytesFromFilter", () => {
describe("server", () => { describe("server", () => {
jest.setTimeout(Number.parseInt(process.env["JEST_TIMEOUT"] || "2000"));
beforeEach(() => { beforeEach(() => {
jest.clearAllMocks(); jest.clearAllMocks();
jest.resetAllMocks(); jest.resetAllMocks();

View File

@@ -90,8 +90,6 @@ describe("rating to and from ints", () => {
}); });
describe("service config", () => { describe("service config", () => {
jest.setTimeout(Number.parseInt(process.env["JEST_TIMEOUT"] || "2000"));
const bonobWithNoContextPath = url("http://localhost:1234"); const bonobWithNoContextPath = url("http://localhost:1234");
const bonobWithContextPath = url("http://localhost:5678/some-context-path"); const bonobWithContextPath = url("http://localhost:5678/some-context-path");