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

x/frugal/dep/std/mock.ts>mockSession

A frugal web framework
Go to Latest
function mockSession
import { mockSession } from "https://deno.land/x/frugal@0.3.0/dep/std/mock.ts";

Creates a session that tracks all mocks created before it's restored. If a callback is provided, it restores all mocks created within it.

Returns

number

Type Parameters

Self
Args extends unknown[]
Return

Parameters

func: (this: Self, ...args: Args) => Return

Returns

(this: Self, ...args: Args) => Return