melanke / Watch.JS

watch the changes of any object or attribute
Other
2.14k stars 219 forks source link

set interval is created on window level instead of target object #130

Open KiranMantha opened 4 years ago

KiranMantha commented 4 years ago

I observed that set interval is used on global window level instead of to-be-watch object. this cause the local testcase failure as jest waits for clearence of set interval which will not happen.It would be better if you add setinterval to watch changes at object level instead of window level.