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

eXtreaL picture eXtreaL  路  29Comments

Enalmada picture Enalmada  路  27Comments

orpheus picture orpheus  路  35Comments

tkh44 picture tkh44  路  29Comments

mitchellhamilton picture mitchellhamilton  路  82Comments