Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 1.57 KB

CONTRIBUTING.md

File metadata and controls

48 lines (38 loc) · 1.57 KB

Contributing

Commits

For consistency we make use of Conventional Commits. It's encouraged that commit messaging follow the format

<type>[optional scope]: <description>

Build Requirements

To set up your work environment you'll need to use

Developing

To start work

$ npm install
$ npm run start:dev

Testing during development

Jest is used for the unit test framework. To run unit tests during development open a terminal instance and run

$ npm run test:dev

This should also let you update the code snapshots.

Code Coverage

The requirements for code coverage are currently maintained around the 60% to 70% mark.

Updates that drop coverage below the current threshold should have their coverage expanded before being merged.

Settings for coverage can be found in package.json

To check test coverage

$ npm test

Code coverage failing to update?

If you're having trouble getting an accurate code coverage report, or it's failing to provide updated results (i.e. you renamed files) you can try running

$ npm run test:clearCache