I'm trying to use this to migrate the couple RN-related test files for React-Redux ( https://github.com/reduxjs/react-redux ) as part of switching from Jest to Vitest.
I've found a couple places where this doesn't work right on Windows:
matcher: (path) => {
const reReactNative = /node_modules(\\|\/)react-native(\\|\/)/
const matches = reReactNative.test(path)
// renderer doesn't have jsx inside and it's too big to process
&& !path.includes('Renderer/implementations')
return matches;
}
The cache dir creation doesn't correctly create the trailing /node_modules/ folder. Fixed with:
I'm trying to use this to migrate the couple RN-related test files for React-Redux ( https://github.com/reduxjs/react-redux ) as part of switching from Jest to Vitest.
I've found a couple places where this doesn't work right on Windows:
https://github.com/sheremet-va/vitest-react-native/blob/e4426a2ea45c71cc29306a8b9de5f35a3d93d44a/packages/vitest-react-native/setup.js#L106
I replaced this with:
/node_modules/
folder. Fixed with:However, I'm then running into this error and don't have any idea what to do with this one:
Any suggestions?