add phpunit to npm run test
This commit is contained in:
parent
3bcea397d7
commit
d230d941dc
|
@ -39,8 +39,9 @@ The current changelog can be found under [source/changelog.txt](source/changelog
|
||||||
|
|
||||||
- Run ESLint: `npm run eslint`
|
- Run ESLint: `npm run eslint`
|
||||||
- Run JavaScript code coverage with tests: `npm run coverage`
|
- 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`
|
- Delete build folder: `npm run clean`
|
||||||
- Update PHP dependencies: `composer update`
|
- Update PHP dependencies: `composer update`
|
||||||
- Check for direct PHP dependency updates: `composer outdated --direct`
|
- Check for direct PHP dependency updates: `composer outdated --direct`
|
||||||
- Format code with prettier: `npm run format`
|
- Format code with prettier: `npm run format`
|
||||||
|
- Generate `vendor/autoload.php` file after creating new class: `composer dump-autoload`
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
"eslint": "npx eslint source/**/*.js",
|
"eslint": "npx eslint source/**/*.js",
|
||||||
"format": "npx prettier --write .",
|
"format": "npx prettier --write .",
|
||||||
"prepare": "husky install",
|
"prepare": "husky install",
|
||||||
"test": "ava"
|
"test": "ava && ./vendor/bin/phpunit"
|
||||||
},
|
},
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Daniel Waxweiler",
|
"name": "Daniel Waxweiler",
|
||||||
|
|
Loading…
Reference in New Issue