Opened 7 weeks ago
Closed 10 days ago
#66203 closed task (blessed) (fixed)
Upgrade jQuery MIgrate to 3.6.0
| Reported by: | peterwilsoncc | Owned by: | peterwilsoncc |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.2 |
| Component: | External Libraries | Version: | |
| Severity: | normal | Keywords: | has-patch has-unit-tests needs-dev-note |
| Cc: | Focuses: | javascript |
Change History (8)
#4
@
4 weeks ago
- Resolution fixed
- Status closed → reopened
The tests added in r63983 fail when running from src, which is the default, see r50441 / #51734.
1) Tests_Dependencies_jQuery::test_jquery_files_exist with data set "jquery" ('jquery.js')
Failed asserting that file "/home/dev-test-s12/tmp/wp-test-runner/src//wp-includes/js/jquery/jquery.js" exists.
/home/dev-test-s12/tmp/wp-test-runner/tests/phpunit/tests/dependencies/jquery.php:52
2) Tests_Dependencies_jQuery::test_jquery_files_exist with data set "jquery-min" ('jquery.min.js')
Failed asserting that file "/home/dev-test-s12/tmp/wp-test-runner/src//wp-includes/js/jquery/jquery.min.js" exists.
/home/dev-test-s12/tmp/wp-test-runner/tests/phpunit/tests/dependencies/jquery.php:52
3) Tests_Dependencies_jQuery::test_jquery_files_exist with data set "jquery-migrate" ('jquery-migrate.js')
Failed asserting that file "/home/dev-test-s12/tmp/wp-test-runner/src//wp-includes/js/jquery/jquery-migrate.js" exists.
/home/dev-test-s12/tmp/wp-test-runner/tests/phpunit/tests/dependencies/jquery.php:52
4) Tests_Dependencies_jQuery::test_jquery_files_exist with data set "jquery-migrate-min" ('jquery-migrate.min.js')
Failed asserting that file "/home/dev-test-s12/tmp/wp-test-runner/src//wp-includes/js/jquery/jquery-migrate.min.js" exists.
/home/dev-test-s12/tmp/wp-test-runner/tests/phpunit/tests/dependencies/jquery.php:52
This can also be seen in recent failures on Host Test Results:
It appears that these aim to test the npm run build functionality, which might seem a bit redundant, but if we want to keep them, maybe we could add a check to only run them from the build directory and skip otherwise?
This ticket was mentioned in PR #15435 on WordPress/wordpress-develop by @peterwilsoncc.
11 days ago
#5
Remove tests ensuring existence of jQuery and jQuery migrate tests in PHP Unit test suite as this may report false failures if the JavaScript build has not been run prior to running the test suite.
Use of AI Tools
@peterwilsoncc commented on PR #15435:
11 days ago
#6
@propsbot add @SergeyBiryukov
In 63983: