Skip to content

feat(test): adopt node:test #3159

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

feat(test): adopt node:test #3159

wants to merge 2 commits into from

Conversation

avivkeller
Copy link
Member

Checklist
  • npm install && npm run lint && npm test passes
  • tests are included
  • documentation is changed or added
  • commit message follows commit guidelines
Description of change

Since v18, Node.js provides the node:test module. Recently, we switched https://nodejs.org to use it, and I believe it would be ideal for other repositories in the organization to follow-suit, after-all, it's our test runner, we should use it.

@avivkeller
Copy link
Member Author

@legendecas
Copy link
Member

Why rename the test directory?

@avivkeller
Copy link
Member Author

Why rename the test directory?

Because in v20, the test runner doesn't have glob support, and will (by default) run every file in the "test" directory. We only want it to run files prefixed with "test-", so the directory was renamed.

I can probably undo that with a run() test API call instead.

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