Contribution
January 4, 2022 ยท View on GitHub
Please read Auth0's contribution guidelines.
Environment setup
- Make sure you have node and npm installed
- Run
npm installto install dependencies - Follow the local development steps below to get started
Local development
npm install: install dependenciesnpm start: starts development http server at http://localhost:3000 with live reload enablednpm run test: run unit testsnpm run test:watch: run unit tests continuouslynpm run test:integration: run integration testsnpm run test:watch:integration: run integration tests continuouslynpm run build: build distribution filesnpm run test:es-check: check if distribution files are compatible with browsersnpm run print-bundle-size: print the final bundle size of distribution files
Testing
Adding tests
- Unit tests go inside __tests__
- Integration tests go inside cypress/integration
Running tests
Run unit and integration tests before opening a PR:
npm run test
npm run test:integration
Also include any information about essential manual tests.