UNPKG

console-fail-test

Version:

Gently fails test runs if the console was used during them. 📢

13 lines (11 loc) • 480 B
interface CftRequest { console: ConsoleSettings; spyLibrary?: SupportedSpyLibrary; testFramework?: SupportedTestFramework; } type SupportedSpyLibrary = "fallback" | "jasmine" | "jest" | "sinon" | unknown; type SupportedTestFramework = "jasmine" | "jest" | "mocha" | unknown; type ConsoleSettings = { [P in keyof Console]?: Console[P] extends Function ? boolean : never; }; export type { CftRequest, ConsoleSettings, SupportedSpyLibrary, SupportedTestFramework };