From cd41c45d917d18839ab800816070db09a359d5bf Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski-Owczarek Date: Tue, 30 Jul 2024 17:53:47 +0200 Subject: Tests: Update jQuery Migrate from 3.4.1 to 3.5.2, simplify Migrate setup Apart from updating jQuery Migrate, the setup is now changed so that exact Migrate versions are only references when fetching npm packages; other than that, they're represented as `jquery-migrate-1.x` & `jquery-migrate-3.x`. This will allow smaller changes when updating jQuery Migrate in the future. Closes gh-2273 --- tests/lib/bootstrap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/lib/bootstrap.js') diff --git a/tests/lib/bootstrap.js b/tests/lib/bootstrap.js index c32d9765e..2f1b7ef4b 100644 --- a/tests/lib/bootstrap.js +++ b/tests/lib/bootstrap.js @@ -112,9 +112,9 @@ function migrateUrl() { if ( jqueryVersion === "git" ) { url = "https://releases.jquery.com/git/jquery-migrate-git"; } else if ( jqueryVersion[ 0 ] === "3" ) { - url = "../../../external/jquery-migrate-3.4.1/jquery-migrate"; + url = "../../../external/jquery-migrate-3.x/jquery-migrate"; } else if ( jqueryVersion[ 0 ] === "1" || jqueryVersion[ 0 ] === "2" ) { - url = "../../../external/jquery-migrate-1.4.1/jquery-migrate"; + url = "../../../external/jquery-migrate-1.x/jquery-migrate"; } else if ( jqueryVersion === "custom" ) { if ( parseUrl().migrate ) { throw new Error( "Migrate not currently supported for custom build" ); -- cgit v1.2.3