With the following code, running npm run test
yields the error in the title of the README.
This error only occurs in files in our codebase which use the FormattedMessage
component.
I've tried to isolate the issue as best I can.
I feel like there are probably 2 likely issues:
- Some kind of bad config between
jest.config.js
,webpack.config.js
, andtsconfig.json
- Some kind of bad setup in the
test-utils.tsx
file.