Skip to content

FEND16/offline-forum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

offline-forum

Example app built with create-react-app for integration and snapshot testing. The app is a forum with posts and comments that uses localStorage. 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

Installation

with npm

git clone https://github.com/FEND16/offline-forum.git
cd jest-react-testing
npm install

with yarn

git clone https://github.com/FEND16/offline-forum.git
cd jest-react-testing
yarn

Running tests

yarn test
npm test

With coverage

yarn test --coverage
npm test -- --coverage

ESLint

Running ESLint

./node_modules/.bin/eslint

Running from global eslint

npm i -g eslint
eslint .eslintrc

ESLint editor integrations

If you want .eslintrc to be detected by your editor you need to install plugin/extensions for your editor.