Skip to content

Commit

Permalink
Don't make occasionally slow network fail tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemaccana committed Apr 27, 2023
1 parent aef8b93 commit 44339f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */

const SECONDS = 1000;

module.exports = {
preset: "ts-jest",
testEnvironment: "node",
testMatch: ["**/*.test.ts"],
// Most of the time the services are <2 secs, but sometimes they're slow
// and we don't want to fail tests because of that.
testTimeout: 8 * SECONDS,
};

0 comments on commit 44339f9

Please sign in to comment.