Skip to content

Commit

Permalink
Update jest config
Browse files Browse the repository at this point in the history
  • Loading branch information
somewhatabstract committed Jul 17, 2022
1 parent a84d8af commit 91c0e78
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ module.exports = {
// The test environment that will be used for testing
testEnvironment: "node",

// Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"
timers: "fake",
// Setting this allows the use of fake timers for functions such as "setTimeout"
fakeTimers: {
enableGlobally: true,
},

setupFilesAfterEnv: ["jest-extended/all"],
};

0 comments on commit 91c0e78

Please sign in to comment.