add phpunit to npm run test

This commit is contained in:
Daniel Waxweiler 2023-05-21 14:52:09 +02:00
parent 3bcea397d7
commit d230d941dc
2 changed files with 3 additions and 2 deletions

View File

@ -39,8 +39,9 @@ The current changelog can be found under [source/changelog.txt](source/changelog
- Run ESLint: `npm run eslint`
- Run JavaScript code coverage with tests: `npm run coverage`
- Run tests: `npm test` & `./vendor/bin/phpunit` (`composer dump-autoload` after newly created class)
- Run tests: `npm test`
- Delete build folder: `npm run clean`
- Update PHP dependencies: `composer update`
- Check for direct PHP dependency updates: `composer outdated --direct`
- Format code with prettier: `npm run format`
- Generate `vendor/autoload.php` file after creating new class: `composer dump-autoload`

View File

@ -12,7 +12,7 @@
"eslint": "npx eslint source/**/*.js",
"format": "npx prettier --write .",
"prepare": "husky install",
"test": "ava"
"test": "ava && ./vendor/bin/phpunit"
},
"author": {
"name": "Daniel Waxweiler",