- Fork the repository & clone your fork
- Install dependencies with
yarn install
(uses Yarn v1) - Build the sources with
yarn build
- Run
yarn test
to run all tests. This includes:
- Unit tests (
yarn test:unit
) - Typechecking (
yarn test:types
) - Integration tests (
yarn test:integration
)
The integration test suite runs against a local SQLite database.
It is copied from ./prisma/db.test.sqlite
to ./prisma/db.integration.sqlite
before each test runs.
The integration test suite runs twice:
- Once for the middleware API
- Once for the client extension API
First off, thanks a lot for your help!
This package uses semantic-release to manage versions.
Therefore, make sure your commit messages follow the Conventional Commits format. There is a pre-commit hook in place that lints commit messages to ensure they follow the format.
Please open an issue before submitting a pull request, so we can iterate on the suggestion and solution.
If your pull request fixes an issue or adds a functionality, please add a test case at the end of the integration test suite. Each test runs in sequence, and shares the same database, so its state must be kept in mind.