Compatibility
- Requires Deno v1.30.0
- Requires Node v14, v16, or v18
Documentation
Usage
- Create a
deps.ts
file.
// deps.ts
export {
Dummy,
Fake,
Mock,
Spy,
Stub
} from "https://deno.land/x/rhum@v2.2.0/mod.ts";
- Import the test doubles from your
deps.ts
file.
import {
Dummy,
Fake,
Mock,
Spy,
Stub
} from "./deps.ts"
... your
... code
... here
Release Summary
- feat(fake/mock): allow pre-programming methods with callbacks (#172)