Skip to content
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

Open
wants to merge 89 commits into
base: master
Choose a base branch
from
Open

Conversation

ilteoood
Copy link

@ilteoood ilteoood commented Jan 4, 2025

Checklist

  • run npm run test and npm 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

package.json Outdated Show resolved Hide resolved
Copy link
Member

@dancastillo dancastillo left a 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 Show resolved Hide resolved
@ilteoood ilteoood requested a review from dancastillo January 5, 2025 09:57
test/static.test.js Outdated Show resolved Hide resolved
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",
Copy link
Member

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

Suggested change
"test:unit": "c8 --100 node --test **/*.test.js",
"test:unit": "c8 --100 node --test",

Copy link
Author

@ilteoood ilteoood Jan 5, 2025

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

test/static.test.js Outdated Show resolved Hide resolved
Co-authored-by: Dan Castillo <[email protected]>
Signed-off-by: Matteo Pietro Dazzi <[email protected]>
@ilteoood ilteoood requested a review from dancastillo January 5, 2025 15:39
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.

2 participants