Last active
August 29, 2015 14:17
-
-
Save chantastic/af6e8030d5a0cceb0f70 to your computer and use it in GitHub Desktop.
@learnreact—React on Rails: Testing with Jest
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
{ | |
"scripts": { | |
"test": "jest" | |
}, | |
"jest": { | |
"scriptPreprocessor": "<rootDir>/preprocessor.js", | |
"unmockedModulePathPatterns": ["<rootDir>/node_modules/react"] | |
} | |
} |
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
var ReactTools = require(‘react-tools’); | |
module.exports = { | |
process: function(src) { | |
return ReactTools.transform(src); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment