Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/dectyl/lib/testing.ts>assertDiagnostics

Prototype library for testing Deno Deploy scripts using the Deno CLI
Go to Latest
function assertDiagnostics
import { assertDiagnostics } from "https://deno.land/x/dectyl@0.10.5/lib/testing.ts";

Asserts that there are no diagnostics returned, otherwise logs the diagnostics to the console and throws.

Parameters

optional
diagnostics: Deno.Diagnostic[]