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

100.00% Branches 0/0
100.00% Lines 11/11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 
 
x1
x1
 
x3
 
x1
x2
x1
 
x1
x2
x3
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({ sanitizeResources: false });

it("leaks resources", async () => {
  const _file = await Deno.open("README.md");
});

describe("leaking ops and resource", () => {
  it("leaks resources", async () => {
    const _file = await Deno.open("README.md");
  });
});