Running jest in a react-native project with symlinked node_modules doesn't work #22823
Closed
3 tasks done
Labels
Resolution: Locked
This issue was locked by the bot.
Environment
Description
Running
yarn test
in a react-native project where the node_modules are symlinked doesn't seem to work:We want this to work, because this is how Stryker's sandboxes work. They create a temp folder inside your project, copy all source files into the sandbox dir and symlink the node_modules. Original issue here: stryker-mutator/stryker-js#717
Reproducible Demo
I've prepared a small git repository to demonstrate the problem. I've created this repository with
expo init
(choosing the more extensive "tab" setup). After that I've installed the latest version of react-native:yarn add react-native
. After that I've created an example "sandbox" directory with a copy of all sources.https://github.com/nicojs/jest-react-native-symlink-test
You can use these commands to reproduce the issue:
The text was updated successfully, but these errors were encountered: