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
We've recently updated one of our typescript projects from date-fns ^2.30.0 to ^3.6.0.
Since then we've seen massive increases in runtime for our jest tests; on my M1 MacBook Pro our test suite increased from 87s to 292s after updating date-fns.
Edit: actually after looking at the Typescript documentation it doesn't look like there's any appropriate alternatives to use as a work-around (the default is node16)
Thanks for the response. I've found the problem (reproduction repo). We use @node20/tsconfig as our base Typescript configuration which sets moduleResolution to node16
If you remove it from the tsconfig.json the runtime of the tests in the reproduction repo go from ~1.3s to ~0.5s. This change doesn't break anything in our project; I'm not sure how you want to document/fix this incompatability in date-fns.
We've recently updated one of our typescript projects from date-fns
^2.30.0
to^3.6.0
.Since then we've seen massive increases in runtime for our jest tests; on my M1 MacBook Pro our test suite increased from 87s to 292s after updating
date-fns
.Package Versions:
If I rollback using
npm install date-fns@2
the test duration returns to normal. Has anyone else ran into this issue?The text was updated successfully, but these errors were encountered: