Skip to content

Commit

Permalink
doc(test): Add the test command line in readme and how to use it (#140)
Browse files Browse the repository at this point in the history
Co-authored-by: DanCodes <dan@dancodes.online>
Co-authored-by: Vladimir <vladimir@bourseauxlivres.fr>
  • Loading branch information
3 people authored May 4, 2023
1 parent 3ac2887 commit e34a699
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,20 @@ Don't forget to give the project a star! Thanks again!
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request
## Testing
The project is tested with `vitest` and requires you to have a library on your BunnyCDN account to send commands to the Bunny API.
> Warning: all videos will be deleted during testing.
### Keys
```sh
BUNNY_VIDEO_LIBRARY=xxx BUNNY_API_KEY=xxx npm test
```
Also, `IGNORE_PRUNE=1` can be used to keep the testing video at the end of the tests for further manual checking.
<!-- LICENSE -->
## License
Expand Down

0 comments on commit e34a699

Please sign in to comment.