All files / testing / testdata / configure_global_sanitizers / disable_sanitize_ops_and_resources.ts

100.00% Branches 0/0
85.71% Lines 12/14
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 
 
x1
x1
 
x1
x1
x1
x1
 
x1
 
x1
 
x1
x2
 
x2
x1

















// Copyright 2018-2025 the Deno authors. MIT license.

import { describe, it } from "@std/testing/bdd";
import { configureGlobalSanitizers } from "@std/testing/unstable-bdd";

configureGlobalSanitizers({
  sanitizeOps: false,
  sanitizeResources: false,
});

it("leaks ops", () => {
  setTimeout(() => {}, 1000);
});

describe("leaks ops", () => {
  it("leaks ops", () => {
    setTimeout(() => {}, 1000);
  });
});