Module

x/proc/tests/deps/asserts.ts>fail

A better way to work with processes in Deno.
Latest
function fail
import { fail } from "https://dotland.deno.dev/x/proc@0.21.9/tests/deps/asserts.ts";

Forcefully throws a failed assertion.

Examples

Example 1

import { fail } from "https://deno.land/std@$STD_VERSION/assert/fail.ts";

fail("Deliberately failed!"); // Throws

Parameters

optional
msg: string

Returns

never