melanke / Watch.JS

watch the changes of any object or attribute

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

set interval is created on window level instead of target object

KiranMantha opened this issue · comments

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.