You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i'm currently doing lot of tests using Browserstack.
Today I executed unit tests on the ~500 browsers Browserstack supports and encountered a strange Error: global leak detected: navigator which appears only with old Firefox versions (the error is encountered in Firefox 5.X and older).
if a new property appears in the global context between the mocha.run() and its completion, the global leak detection error will occur. what FF is doing, I don't know, but that's why. good to know for people using older FF versions though--thanks
Hi, i'm currently doing lot of tests using Browserstack.
Today I executed unit tests on the ~500 browsers Browserstack supports and encountered a strange
Error: global leak detected: navigator
which appears only with old Firefox versions (the error is encountered in Firefox 5.X and older).My settings are very simple ;
The first time I execute the tests the following error is reported :
Error: global leak detected: navigator
.But if I refresh the tab it works without problem, what's strange is that if I add only
navigator.userAgent;
beforemocha.checkLeaks();
then it works.Do you know why I encounter this strange behavior ? Is it a bug in Mocha's leaks detection ?
If somebody else encounters the same error the workaround is simply to change you Mocha settings.
Thanks,
Baptiste
The text was updated successfully, but these errors were encountered: