aboutsummaryrefslogtreecommitdiffstats
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorTimmy Willison <timmywil@users.noreply.github.com>2024-03-29 09:13:46 -0400
committerGitHub <noreply@github.com>2024-03-29 09:13:46 -0400
commit91df20be6b488ac6cf4da291d7ee3aa5d6feac73 (patch)
tree56b5c4f8b96a8323e3a6ce9c02c3e84c85a9d6d5 /Gruntfile.js
parent802642c37323d5fc05bfa4cee90a900953f9a98d (diff)
downloadjquery-ui-91df20be6b488ac6cf4da291d7ee3aa5d6feac73.tar.gz
jquery-ui-91df20be6b488ac6cf4da291d7ee3aa5d6feac73.zip
Tests: replace grunt-contrib-qunit with jQuery test runner
- add filestash workflow Close gh-2221
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js37
1 files changed, 7 insertions, 30 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index fd82b4c6c..6df615825 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -77,7 +77,6 @@ const compareFiles = {
"dist/jquery-ui.min.js"
]
};
-const component = grunt.option( "component" ) || "**";
const htmllintBad = [
"demos/tabs/ajax/content*.html",
@@ -205,30 +204,6 @@ grunt.initConfig( {
src: htmllintBad
}
},
- qunit: {
- files: expandFiles( "tests/unit/" + component + "/*.html" ).filter( function( file ) {
- return !( /(all|index|test)\.html$/ ).test( file );
- } ),
- options: {
- puppeteer: {
- args: [
- "--allow-file-access-from-files"
- ]
- },
- inject: [
- require.resolve(
- "./tests/lib/grunt-contrib-qunit-bridges/bridge-wrapper.js.intro"
- ),
- require.resolve( "grunt-contrib-qunit/chrome/bridge" ),
- require.resolve(
- "./tests/lib/grunt-contrib-qunit-bridges/bridge-wrapper.js.outro"
- )
- ],
- page: {
- viewportSize: { width: 700, height: 500 }
- }
- }
- },
eslint: {
all: [
"ui/**/*.js",
@@ -430,6 +405,9 @@ grunt.initConfig( {
"jquery-3.7.0/jquery.js": "jquery-3.7.0/dist/jquery.js",
"jquery-3.7.0/LICENSE.txt": "jquery-3.7.0/LICENSE.txt",
+ "jquery-3.7.1/jquery.js": "jquery-3.7.1/dist/jquery.js",
+ "jquery-3.7.1/LICENSE.txt": "jquery-3.7.1/LICENSE.txt",
+
"jquery-migrate-1.4.1/jquery-migrate.js":
"jquery-migrate-1.4.1/dist/jquery-migrate.js",
"jquery-migrate-1.4.1/LICENSE.txt": "jquery-migrate-1.4.1/LICENSE.txt",
@@ -473,13 +451,12 @@ grunt.initConfig( {
require( "load-grunt-tasks" )( grunt, {
pattern: nodeV16OrNewer ? [ "grunt-*" ] : [
"grunt-*",
- "!grunt-contrib-qunit",
"!grunt-eslint",
"!grunt-html"
]
} );
-// local testswarm and build tasks
+// local tasks
grunt.loadTasks( "build/tasks" );
grunt.registerTask( "update-authors", function() {
@@ -518,15 +495,15 @@ grunt.registerTask( "print_old_node_message", ( ...args ) => {
} );
// Keep this task list in sync with the testing steps in our GitHub action test workflow file!
-grunt.registerTask( "default", [ "lint", "requirejs", "test" ] );
-grunt.registerTask( "jenkins", [ "default", "concat" ] );
grunt.registerTask( "lint", [
"asciilint",
runIfNewNode( "eslint" ),
"csslint",
runIfNewNode( "htmllint" )
] );
-grunt.registerTask( "test", [ runIfNewNode( "qunit" ) ] );
+grunt.registerTask( "build", [ "requirejs", "concat" ] );
+grunt.registerTask( "default", [ "lint", "build" ] );
+grunt.registerTask( "jenkins", [ "build" ] );
grunt.registerTask( "sizer", [ "requirejs:js", "uglify:main", "compare_size:all" ] );
grunt.registerTask( "sizer_all", [ "requirejs:js", "uglify", "compare_size" ] );