mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Build/Test Tools: Remove the dependency on a globally installed Grunt.
The existing `"grunt": "grunt"` script in `package.json` allows for the use of `npm run grunt ...` which uses the local `grunt` binary in the project's `node_modules`. Fixes #47380 git-svn-id: https://develop.svn.wordpress.org/trunk@45445 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -47,7 +47,7 @@ if ( version_compare( tests_get_phpunit_version(), '8.0', '>=' ) ) {
|
||||
}
|
||||
|
||||
if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS && ! is_dir( ABSPATH ) ) {
|
||||
echo "ERROR: The /build/ directory is missing! Please run `grunt build` prior to running PHPUnit.\n";
|
||||
echo "ERROR: The /build/ directory is missing! Please run `npm run build` prior to running PHPUnit.\n";
|
||||
exit( 1 );
|
||||
}
|
||||
|
||||
|
||||
@@ -309,7 +309,7 @@ class Tests_Embed_Template extends WP_UnitTestCase {
|
||||
* So this test checks for ampersands in build/wp-includes/js/wp-embed.min.js.
|
||||
* In many cases, this file will not exist; in those cases, we simply skip the test.
|
||||
*
|
||||
* So when would it be run? We have Travis CI run `grunt test` which then runs, in order,
|
||||
* So when would it be run? We have Travis CI run `npm run test` which then runs, in order,
|
||||
* `qunit:compiled` (which runs the build) and then `phpunit`. Thus, this test will at least be
|
||||
* run during continuous integration.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user