Testing with Enzyme: An id
must be provided to format a message.
#2742
-
Since using explicit IDs is now discouraged, I've updated my app to only use However, I am still encountering this error when running my unit tests. I have created the helper function for Enzyme as detailed on this page: https://formatjs.io/docs/guides/testing#enzyme Has anyone else had issues testing their apps when not using explicit IDs? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
you can add our babel plugin to your jest config: https://formatjs.io/docs/tooling/babel-plugin |
Beta Was this translation helpful? Give feedback.
you can add our babel plugin to your jest config: https://formatjs.io/docs/tooling/babel-plugin