Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/std/testing/asserts.ts>fail

A modern runtime for JavaScript and TypeScript.
Go to Latest
function fail
import { fail } from "https://deno.land/x/deno@v0.28.0/std/testing/asserts.ts";

Forcefully throws a failed assertion

Parameters

optional
msg: string