Emotion: Error to run tests with emotion-jest 11

Created on 16 Nov 2020  路  3Comments  路  Source: emotion-js/emotion

Current behavior:

I've upgraded to v11, I received the following error when the run the test suite.

 Cannot find module 'enzyme-to-json' from 'node_modules/@emotion/jest/dist/emotion-jest.cjs.dev.js'

    Require stack:
      node_modules/@emotion/jest/dist/emotion-jest.cjs.dev.js
      node_modules/@emotion/jest/dist/emotion-jest.cjs.js
      src/setupTests.js

To reproduce:

Repro case -> emotion-jest

Environment information:

  • react version: 17.0.1
  • @emotion/react version: 11.0.0
bug

Most helpful comment

All 3 comments

Nice, thanks @Andarist

The fix has been released.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sami616 picture sami616  路  3Comments

AlexanderProd picture AlexanderProd  路  3Comments

johnbrett picture johnbrett  路  3Comments

rockmandash picture rockmandash  路  3Comments

smlmrkhlms picture smlmrkhlms  路  3Comments