jest-preset-angular: fakeAsync doesn't work

Steps to reproduce:

  1. Clone this repo.
  2. Run yarn and yarn jest and note that the fakeAsync test fails

Note that yarn test, which uses Karma, passes.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 3
  • Comments: 15 (6 by maintainers)

Most upvoted comments

Thanks @Waldo000000, I’ve confirmed it works with zone 0.8.10, but breaks since 0.8.11. I’ve also been able to track the change, which I think is a bug, but who knows.

I’ve asked about that in the relevant PR which introduced the change. Any help on this appreciated.

Temporary solution: lock down zone.js to 0.8.10

I’m using jest-preset-angular@5.0 and zone@0.8.2 and fakeAsync still fails for me

Hey folks, I’ve just released v4.0.0-alpha.1, can you give it a try with the zone.js >=0.8.11?