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

x/fresh_testing_library/mod.ts

Utilities for testing fresh apps
Latest
import * as freshTestingLibrary from "https://deno.land/x/fresh_testing_library@0.13.1/mod.ts";

This module provides expect() API based on the following packages:

Functions

Unmounts Preact trees that were mounted with render.

Returns a presentation string of your val object

Returns a presentation string of your val object

Render into a container which is appended to document.body. It should be used with cleanup.

Allows you to render a hook within a test React component without having to create that component yourself.

This function sets up the DOM environment to make Testing Library work.

Type Aliases

Options which can be passed to createRouteContext.

Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.

query methods have a common call signature. Only the return type differs.

query methods have a common call signature. Only the return type differs.