Do you want to request a feature or report a bug?
Feature, I suppose.
What is the current behavior?
We currently implement fake timers ourselves. See docs and implementation.
If the current behavior is a bug, please provide the steps to reproduce and
either a repl.it demo through https://repl.it/languages/jest or a minimal
repository on GitHub that we can yarn install and yarn test.
N/A
What is the expected behavior?
Our current implementation has a couple of holes (see #3465 and #5147) both of which are covered by Lolex.
I think we would benefit from basically proxying Lolex through Jest's API to keep the "batteries included" feature.
I hit one issue when I spent some minutes looking into it to see if it was feasible while still keeping Jest's API mostly the same, sinonjs/fake-timers#146. Might be other issues, I haven't dug too deeply into it.
Please provide your exact Jest configuration and mention your Jest, node,
yarn/npm version and operating system.
N/A
Do you want to request a feature or report a bug?
Feature, I suppose.
What is the current behavior?
We currently implement fake timers ourselves. See docs and implementation.
If the current behavior is a bug, please provide the steps to reproduce and
either a repl.it demo through https://repl.it/languages/jest or a minimal
repository on GitHub that we can
yarn installandyarn test.N/A
What is the expected behavior?
Our current implementation has a couple of holes (see #3465 and #5147) both of which are covered by Lolex.
I think we would benefit from basically proxying Lolex through Jest's API to keep the "batteries included" feature.
I hit one issue when I spent some minutes looking into it to see if it was feasible while still keeping Jest's API mostly the same, sinonjs/fake-timers#146. Might be other issues, I haven't dug too deeply into it.
Please provide your exact Jest configuration and mention your Jest, node,
yarn/npm version and operating system.
N/A