Jest.mock does not resolve modules correctly when NODE_PATH is set
Created by: dapids
Description
Running tests with NODE_PATH=src npm test.
Expected behavior
jest.mock('my_module') should be resolved to src/my_module.
Actual behavior
jest.mock('my_module') does not resolve to src/my_module.
Environment
-
npm ls react-scripts(if you haven’t ejected):0.8.4 -
node -v:v6.9.2 -
npm -v:3.10.9