https://www.growthbook.io/ logo
#announcements
Title
# announcements
r

rhythmic-chef-84815

06/14/2022, 1:57 PM
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

future-teacher-7046

06/14/2022, 1:58 PM
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

rhythmic-chef-84815

06/14/2022, 2:00 PM
in the FE we use angular httpclient library, not fetch
f

future-teacher-7046

06/14/2022, 2:04 PM
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

rhythmic-chef-84815

06/14/2022, 2:06 PM
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
13 Views