Skip to content

Commit

Permalink
Fix "npm run test:php" and "npm run test:php:watch" commands
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcasual committed Sep 22, 2023
1 parent e25aba6 commit 0275ef9
Show file tree
Hide file tree
Showing 4 changed files with 1,789 additions and 111 deletions.
11 changes: 11 additions & 0 deletions .phpunit-watcher.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
watch:
directories:
- src
- tests
fileMask: '*.php'
notifications:
passingTests: false
failingTests: false
phpunit:
arguments: '--stop-on-failure'
timeout: 180
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"php": ">=5.3.0",
"ext-curl": "*",
"ext-json": "*",
"yoast/phpunit-polyfills": "^1.0"
"yoast/phpunit-polyfills": "^1.0",
"spatie/phpunit-watcher": "^1.23"
},
"scripts": {
"test": "phpunit"
Expand Down
Loading

0 comments on commit 0275ef9

Please sign in to comment.