Created
January 28, 2015 20:51
-
-
Save ignu/4b328ae696f8d0b56d1f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# doesn't work | |
# Error: /Users/ignu/code/true-app/spec/react-tests/log-activity-test.coffee: | |
# Cannot find module './log_activity' from '/Users/ignu/code/true-app/spec/react-tests/log-activity-test.coffee' | |
r = (path)-> | |
jest.dontMock path | |
require path | |
r('./log_activity') | |
# totally works fine | |
jest.dontMock('./log_activity') | |
require('./log_activity') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment