-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration to node test runner #495
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you update assertions to strict assertions like t.assert.equal()
-> t.assert.strictEqual()
package.json
Outdated
"lint": "eslint", | ||
"lint:fix": "eslint --fix", | ||
"test": "npm run test:unit && npm run test:typescript", | ||
"test:typescript": "tsd", | ||
"test:unit": "tap", | ||
"test:unit": "c8 --100 node --test **/*.test.js", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be the equivalent
"test:unit": "c8 --100 node --test **/*.test.js", | |
"test:unit": "c8 --100 node --test", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not on node 20. Without pattern it tries to read the no-link file and fails to run the tests as It points to something that doesn't exists
Co-authored-by: Dan Castillo <[email protected]> Signed-off-by: Matteo Pietro Dazzi <[email protected]>
Checklist
run
npm run test
andnpm run benchmark
tests and/or benchmarks are included
documentation is changed or added
commit message and code follows the Developer's Certification of Origin
and the Code of conduct
Migrated to node test runner
Removed simple-get in favour of fetch