From af2d992ecd2b9320072164b6ee295c31a3194406 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Sat, 14 Sep 2024 11:58:47 +0100 Subject: feat: TypeScript 5.6 and `npm:@types/node@22` (#25614) --- tests/unit_node/_fs/_fs_stat_test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/unit_node/_fs') diff --git a/tests/unit_node/_fs/_fs_stat_test.ts b/tests/unit_node/_fs/_fs_stat_test.ts index 09d78f9db..02c620e2d 100644 --- a/tests/unit_node/_fs/_fs_stat_test.ts +++ b/tests/unit_node/_fs/_fs_stat_test.ts @@ -133,7 +133,9 @@ Deno.test("[std/node/fs] stat callback isn't called twice if error is thrown", a Deno.test({ name: "[std/node/fs] stat default methods", fn() { - const stats = new Stats(); + // stats ctor is private + // deno-lint-ignore no-explicit-any + const stats = new (Stats as any)(); assertEquals(stats.isFile(), false); assertEquals(stats.isDirectory(), false); assertEquals(stats.isBlockDevice(), false); -- cgit v1.2.3