diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-09-05 15:22:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-05 15:22:31 +0200 |
commit | 15fce5b290d7dc3eb503a70bd8a10aaf72a09f5e (patch) | |
tree | a236e2de82f91b8a36cb5228db119f116fe05c06 /tests/unit_node | |
parent | b54347c448ca4a003b81800655eb1433fc842b2a (diff) |
feat(check): turn on useUnknownInCatchVariables (#25465)
Part of #25162
Closes #11826
Diffstat (limited to 'tests/unit_node')
-rw-r--r-- | tests/unit_node/module_test.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit_node/module_test.ts b/tests/unit_node/module_test.ts index 994dcfb63..96c3504bd 100644 --- a/tests/unit_node/module_test.ts +++ b/tests/unit_node/module_test.ts @@ -74,7 +74,7 @@ Deno.test("Built-in Node modules have `node:` prefix", () => { createRequire(); } catch (e) { thrown = true; - const stackLines = e.stack.split("\n"); + const stackLines = (e as Error).stack!.split("\n"); // Assert that built-in node modules have `node:<mod_name>` specifiers. assert(stackLines.some((line: string) => line.includes("(node:module:"))); } |