Skip to content

bug repo showing a fastify problem with jest fakeTimers

Notifications You must be signed in to change notification settings

rburgst/fastify-jest-timers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fastify Hangs with Jest Sample repo

Sample repo demostrating a problem with fastify and using jest.useFakeTimers causing a hang.

To replicate:

  • npm install
  • npm run test

=> test hangs and fails with timeout.

Comment out

// test/routes/root.test.js

    // jest
    //   .useFakeTimers("modern")
    //   .setSystemTime(new Date("2020-02-08T20:10:21.520Z"));

to make it work.

See jestjs/jest#12056

About

bug repo showing a fastify problem with jest fakeTimers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published