Skip to content

Commit

Permalink
Add task for running PHP and JS tests (#2189)
Browse files Browse the repository at this point in the history
* Setup Jest as Javascript test runner

* Add Jest configuration file

Look for `.js` and `.jsx` files inside `tests` subfolder of the `assets/block` folders.

* Add Gulp task for running PHP unit tests

* Run PHP and JS tests as part of npm script
  • Loading branch information
donnapep committed Jul 5, 2018
1 parent cccb48f commit 09ddb34
Show file tree
Hide file tree
Showing 6 changed files with 6,297 additions and 904 deletions.
5 changes: 3 additions & 2 deletions composer.json
Expand Up @@ -3,8 +3,9 @@
"description": "A learning management plugin for WordPress, which provides the smoothest platform for helping you teach anything.",
"require-dev": {
"apigen/apigen": "*",
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.4",
"phpunit/phpunit": "^6.5",
"squizlabs/php_codesniffer": "3.*",
"wp-coding-standards/wpcs": "^0.14.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.4"
"wp-coding-standards/wpcs": "^0.14.0"
}
}

0 comments on commit 09ddb34

Please sign in to comment.