Guys, in our test environment we mock our date and...
# announcements
r
Guys, in our test environment we mock our date and looks like this
Copy code
const now = new Date('2020-03-04T10:30:00.000Z');
mockCurrentDate(now);
But after adding growthbook the test environment just breaks, it stays loading forever. Is there anything in the library that relies on the date?
f
I don't believe there's anything in the SDK directly. Are you using
fetch
or anything to load features? It's possible the incorrect date is causing SSL to fail.
r
in the FE we use angular httpclient library, not fetch
f
ok, I think that would have the same SSL certificate issues. I would recommend mocking that request so your test doesn't depend on the network
r
I actually think is not growthbook, I had to do some changes to mixpanel and that one could be causing the issue, thanks for the info 🙂
yeap, it was mixpanel