Skip to main content

@std/expect@0.215.0

latest
Works with
It is unknown whether this package works with Browsers, Deno, Node.js, Cloudflare Workers, Bun
It is unknown whether this package works with Browsers
It is unknown whether this package works with Deno
It is unknown whether this package works with Node.js
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Bun
JSR Score47%
Published2 years ago (0.215.0)
default

This module provides jest compatible expect assertion functionality.

Examples

Example 1

import { expect } from "@std/expect";

const x = 6 * 7;
expect(x).toEqual(42);
expect(x).not.toEqual(0);

await expect(Promise.resolve(x)).resolves.toEqual(42);

Functions

f
expect(
value: unknown,
customMessage?: string
): Expected
No documentation available
f
fn(...stubs: Function[]): Function
No documentation available
expect

Functions

f
expect(
value: unknown,
customMessage?: string
): Expected
No documentation available
fn

Functions

f
fn(...stubs: Function[]): Function
No documentation available

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/expect

Import symbol

import * as expect from "@std/expect";
or

Import directly with a jsr specifier

import * as expect from "jsr:@std/expect";