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

feat(test): Add Deno.test.disableSanitizers API #27842

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bartlomieju
Copy link
Member

This commit adds Deno.test.disableSanitizers() API that can be used
to disable op and resource sanitizers for the whole test file (as opposed
to disabling them per test).

This API would help in situation like #27775
where a 3 party library causes leaks and there's not much end user can do. Instead
of changing potentially tens of tests, the sanitizers can be disabled
by a single line in a file.

Once Deno.test.disableSanitizers() is called, individual tests can still
override this and enable relevant sanitizers using sanitizeOps and sanitizeResources
options.

@bartlomieju bartlomieju added this to the 2.2.0 milestone Jan 27, 2025
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.

1 participant