Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/clarigen/src/deps.ts

Deno package for type-safe Clarinet tests
Go to Latest
import * as clarigen from "https://deno.land/x/clarigen@v0.4.9/src/deps.ts";

Enums

Get log level numeric values through enum constants

Functions

Make an assertion, error will be thrown if expr does not have truthy value.

Make an assertion that actual and expected are equal, deeply. If not deeply equal, then throw.

Executes a function, expecting it to throw. If it does not, then it throws. An error class and a string that should be included in the error message can also be asserted.

Set text color to blue.

Make the text bold.

Returns the numeric log level associated with the passed, stringy log level name.

Set text color to gray.

Log with critical level, using default logger.

Log with debug level, using default logger.

Log with error level, using default logger.

Get a logger instance. If not specified name, get the default logger.

Log with info level, using default logger.

Setup logger config.

Log with warning level, using default logger.

Parses content as single YAML document.

Set text color to red.

Converts and format a variable number of args as is specified by format. sprintf returns the formatted string.

Stringify dumps source object into TOML string and returns it.

Set text color to yellow.

Type Aliases

Union of valid log level strings

Union of valid log level strings