mirror of
https://github.com/janishutz/color-thief.git
synced 2025-11-25 13:54:25 +00:00
19 lines
522 B
Markdown
19 lines
522 B
Markdown
## Running tests
|
|
|
|
Run Cypress integration tests in Chrome browser.
|
|
|
|
- `npm run dev` to start local server.
|
|
- `npm run test`
|
|
|
|
## Adding tests
|
|
|
|
- Update `cypress/test-pages/index.html` as needed or create a new test page if you need new examples.
|
|
- Add new tests in `cypress/integration/apis_spec.js`
|
|
|
|
## Making a new release
|
|
|
|
- Update version number in `src/color-thief.js` and `package.json`
|
|
- Run `npm run build`
|
|
- Push to Github repo
|
|
- Create a new Github release along with tag. Naming convention for both ```v2.8.1```
|