I wrote a React application and used jest to write unit tests.
when I run it by "jest --config=jest.config.json --watch" I get the following error:
● Test suite failed to run
TypeError: Path must be a string. Received undefined at assertPath (path.js:7:11) at Object.relative (path.js:1226:5)
My jest.config.json is:
{
"snapshotSerializers": [
"enzyme-to-json/serializer"
],
"transformIgnorePatterns": [
"node_modules/(?!(react-native|my-project|redux-persist)/)"
]
}