I have a React app that uses a Node.js express server for the API endpoints with MongoDB. The create-react-app starter project comes preconfigured with jest as the testing framework so I’m using that for the API endpoint testing.
Running the tests on my local development environment works fine and running in a docker container that I’m running locally also works fine.
Travis fails with the following error:
FAIL src/server/api/users.test.js
● Test suite failed to run
TypeError: Cannot assign to read only property 'Symbol(Symbol.toStringTag)' of object '#<process>'
at exports.default (node_modules/jest-util/build/create_process_object.js:15:34)
Here is the build log:
https://travis-ci.com/jpvanoosten/learn/jobs/182875251
Any ideas why this is occurring?