Example app built with
create-react-appfor integration and snapshot testing. The app is a forum with posts and comments that useslocalStorage. It also has a bot that responds with delay. CSS-framework is Tailwind
The project is already set up with all packages to test react components: enzyme, enzyme-adapter-react-16, react-test-renderer and enzyme-to-json for snapshot testing. You can read more about setting it up here: Running test @ create-react-app
with npm
git clone https://github.com/FEND16/offline-forum.git
cd jest-react-testing
npm installwith yarn
git clone https://github.com/FEND16/offline-forum.git
cd jest-react-testing
yarnyarn testnpm testyarn test --coveragenpm test -- --coverageRunning ESLint
./node_modules/.bin/eslintRunning from global eslint
npm i -g eslinteslint .eslintrcIf you want .eslintrc to be detected by your editor you need to install plugin/extensions for your editor.