-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
feat(node): add polyfill for node:test module #20002
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.
LGTM!
async throw fail => node:test:135:10 | ||
async skip fail => node:test:135:10 | ||
async assertion fail => node:test:135:10 | ||
reject fail => node:test:135:10 |
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.
Perhaps we should wildcard these line numbers?
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.
I'd rather not - they show a problem that the current implementation doesn't point to proper place - all point to a wrapper function in ext/node/polyfills/testing.ts
module. I think I know how to fix it in the implementation of Deno.test
but I want to do it in a follow up.
This commit provides basic polyfill for "node:test" module. Currently only
top-level "test" function is polyfilled, all remaining functions from that module
throw not implemented errors.