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

x/clarigen/src/dev-deps.ts

Deno package for type-safe Clarinet tests
Latest
import * as clarigen from "https://deno.land/x/clarigen@v0.5.5/src/dev-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.

Make an assertion that actual includes expected. If not then thrown.

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