Open amoore108 opened 3 months ago
I can see what could cause this but I somewhat fail to see why 🤔 This shouldn't increase the memory usage all that much: https://github.com/emotion-js/emotion/pull/3198/commits/89bebfbca7f75e441663072a3dcd9632a4ac3136
I can look into your issue given that you have provided the repro case... but it will take some days before I get to it.
Thanks @Andarist, no major rush on this. Appreciate your time looking into it 👍
Similar situation here, bumped @emotion/jest from 11.11.0 to 11.13.0 and now if I run my tests with --detectLeaks
, they all fail as leaking memory. Going back to 11.11.0 solves it.
Unfortunately can't provide a small repo to reproduce.
Current behavior: We're seeing a potential memory leak from the latest version of
@emotion
, possibly the@emotion/jest
library specifically: https://github.com/bbc/simorgh/actions/runs/10039435131/job/27743362024?pr=11779This behaviour can be reproduced locally by running this Dependabot update branch: https://github.com/bbc/simorgh/pull/11779
I tried downgrading
@emotion/jest
back to11.11.0
and it appears to work and not crash out (although causes snapshot issues, probably due to the mismatch between versions of expected packages)Previously
11.12.0
of the other Emotion packages, apart from@emotion/jest
, also worked: https://github.com/bbc/simorgh/pull/11776To reproduce:
yarn
to install dependenciesyarn test:unit
to run unit testsJavaScript heap out of memory
errorExpected behavior:
Environment information:
react
version: 18.3.1@emotion/react
version: 11.13.0