stub()
@std/x
import * as stdYaml from 'jsr:@std/yaml'; using _parse = stub( stdYaml, 'parse', returnsNext([{ version: '3.8' }]), );
sh error: MockError: Cannot stub: non-configurable instance method throw new MockError("Cannot stub: non-configurable instance method");
Join the Discord to ask follow-up questions and connect with the community
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934 Members