React & Jest: Cannot find module from test file
问题 Setting up a Jest test ('App-test.js') for a Redux action ('App.js') in a directory app/__tests__ : Here's the header of App.js: jest.unmock('../../modules/actions/App.js') import React from 'react' import ReactDOM from 'react-dom' import TestUtils from 'react-addons-test-utils' import * as App from '../../modules/actions/App.js' In app/ there is a module config.js . This is being imported where it is needed. The problem is, when I run my Jest tests, such as App-test.js, it is looking for