Fake Timers #2855
-
Hi there It had no luck to fake timers on Searching for examples I've just found several suggestions to go with So for now I'm trying to setup test isolation over sandboxing subject modules with but so far just stuck a little with vm2 it self. So maybe there're some other flows exists which are more simple? Would you share your experience? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
setTimeout
,Date
, etc are globals, so shared between all running code in the process or worker thread. You cannot fake them and then also run concurrent tests.