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: Stabilize Deno.TestDefinition.permissions #12078
feat: Stabilize Deno.TestDefinition.permissions #12078
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.
I think we need to update op_pledge_test_permissions
to not do an unstable check?
* | ||
* Defaults to "inherit". | ||
*/ | ||
run?: "inherit" | boolean | Array<string | URL>; |
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 was looking at parsePermissions
in 11_workers.js and run
seems like it does not support an array even though it says it does here. The documentation comment also doesn't describe what an array does.
I'm a little concerned about this API not being well tested considering there are these major issues with it (like the other one I discovered and fixed). Perhaps we should work on improving the test coverage for this feature and worker permissions (if anything, at least we could open an issue).
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.
Looks like I accidentally fixed this in #11981. I'll extract the fix and cleanups to a separate PR.
Blocked by #12297 |
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
Closes #12025