From 533d31bc4e9c0cae2b9047850c39c68bf494595e Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Wed, 14 Aug 2024 14:33:42 +0200 Subject: fix: `node:inspector` not being registered (#25007) For some reason we didn't register the `node:inspector` module, which lead to a panic when trying to import it. This PR registers it. Related: https://github.com/denoland/deno/issues/25004 --- tests/unit_node/inspector_test.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/unit_node/inspector_test.ts (limited to 'tests/unit_node') diff --git a/tests/unit_node/inspector_test.ts b/tests/unit_node/inspector_test.ts new file mode 100644 index 000000000..ec4d0ae3a --- /dev/null +++ b/tests/unit_node/inspector_test.ts @@ -0,0 +1,7 @@ +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +import inspector from "node:inspector"; +import { assertEquals } from "@std/assert/equals"; + +Deno.test("[node/inspector] - importing inspector works", () => { + assertEquals(typeof inspector.open, "function"); +}); -- cgit v1.2.3