You can't introduce testing w/o introducing religion, unfortunately. For example, I refuse to test my UI in an environment where I can't actually render it in a browser and step through problems in real browsers to fix bugs. Asking folks to eject because they don't like your religion seems a little harsh.
Seems like for testing we ought to be able to have a module on npm called react-scripts-jest, require it in the app's package.json, and then have npm test be something like:
{
"scripts": {
"test": "react-scripts-jest"
}
}
That would be the default or create-react-app, but other folks can create react-scripts-karma or just roll their own inside the project.
You can't introduce testing w/o introducing religion, unfortunately. For example, I refuse to test my UI in an environment where I can't actually render it in a browser and step through problems in real browsers to fix bugs. Asking folks to
ejectbecause they don't like your religion seems a little harsh.Seems like for testing we ought to be able to have a module on npm called
react-scripts-jest, require it in the app's package.json, and then havenpm testbe something like:{ "scripts": { "test": "react-scripts-jest" } }That would be the default or
create-react-app, but other folks can createreact-scripts-karmaor just roll their own inside the project.