UNPKG

ts-snippet

Version:

A TypeScript snippet testing library for any test framework

12 lines (11 loc) 654 B
import { ExecutionContext } from "ava"; import { Compiler } from "../compiler"; import { Expect } from "../expect"; import { Snippet } from "../snippet"; export { Compiler }; export { Expect }; export declare function expecter(factory: (code: string) => string, compiler: Compiler): (context: ExecutionContext, code: string) => Expect; export declare function expecter(factory?: (code: string) => string, compilerOptions?: object, rootDirectory?: string): (context: ExecutionContext, code: string) => Expect; export declare function snippet(context: ExecutionContext, files: { [fileName: string]: string; }, compiler?: Compiler): Snippet;