A little React app with tests that need some ❤️.
- node. I use the popular tool nvm to install multiple versions of node and switch between them from project to project.
- yarn. This has become the industry standard for managing node dependencies. Installation instructions for many operating systems here. I installed mine with
brew install yarn
.
It's a Create React App so you can run it in the usual way:
yarn install
// install node dependenciesyarn start
// run the development server- navigate to localhost:3000
yarn test
runs the unit tests in "watch mode". When you update the code, the tests will run themselves again.yarn test:acceptance
runs the end to end browser tests in theacceptance/
directory. We're using the Puppeteer library to launch the app server in an instance of Chromium, then visit the site and type, click, etc.