Skip to content

fix: broken grunt test on modern Nodejs#370

Open
Shashwat325 wants to merge 1 commit intoaces:masterfrom
Shashwat325:fix/grunt-test-qunit-compatibility
Open

fix: broken grunt test on modern Nodejs#370
Shashwat325 wants to merge 1 commit intoaces:masterfrom
Shashwat325:fix/grunt-test-qunit-compatibility

Conversation

@Shashwat325
Copy link

grunt test was broken on modern Node.js with the following error:

Fatal error: The "cb" argument must be of type function. Received undefined

The dependencies on which the grunt test depends were outdated which led to this error. I fixed that by installing the newer versions of the libraries:
Upgraded grunt-contrib-qunit to latest version which now uses headless Chrome instead of abandoned phantomjs
Added qunit@2.20.0 files to test/lib/
Updated test HTML files to reference new qunit files
Upgraded grunt-contrib-compress to fix compress task
Fixed test/brainbrowser symlink for headless Chrome
Before fix
Screenshot 2026-03-19 114916

After fix
corrected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant