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

x/udibo_react_app/test_utils.ts>inEnvironment

A React Framework for Deno that makes it easy to create highly interactive apps that have server side rendering with file based routing for both your UI and API.
Latest
function inEnvironment
import { inEnvironment } from "https://deno.land/x/udibo_react_app@0.19.0/test_utils.ts";

This function sets the APP_ENV environment variable to the provided environment until the promise returned by the callback resolves or rejects.

Parameters

environment: string
fn: () => Promise<void>

Returns

Promise<void>