Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@chantastic
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chantastic/af6e8030d5a0cceb0f70 to your computer and use it in GitHub Desktop.
Save chantastic/af6e8030d5a0cceb0f70 to your computer and use it in GitHub Desktop.
@learnreact—React on Rails: Testing with Jest
{
"scripts": {
"test": "jest"
},
"jest": {
"scriptPreprocessor": "<rootDir>/preprocessor.js",
"unmockedModulePathPatterns": ["<rootDir>/node_modules/react"]
}
}
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