- Check out the issues
- Fork this repository
- Clone your fork
- Add the upstream project (this one) as a git remote:
$ git remote add upstream [email protected]:rpearce/react-medium-image-zoom.git $ git fetch upstream $ git rebase upstream/main
- Check out a feature branch
$ git checkout -b my-feature
- Make your changes
- Push your branch to your GitHub repo
$ git push origin my-feature
- Create a pull request
from your branch to this repo's
main
branch - When all is merged, pull down the upstream changes to your
main
$ git checkout main $ git fetch upstream $ git rebase upstream/main
- Delete your feature branch (locally and then on GitHub)
$ git branch -D my-feature $ git push origin :my-feature
Tests are located in the test/
folder. Here's how to run them:
$ npm run test
To test in watch mode:
$ npm run test --watch
To generate a local coverage report:
$ npm run test --coverage
$ open coverage/lcov-report/index.html