ts-snippet
Version:
A TypeScript snippet testing library for any test framework
12 lines (11 loc) • 623 B
TypeScript
import * as tape from "tape";
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: tape.Test, code: string) => Expect;
export declare function expecter(factory?: (code: string) => string, compilerOptions?: object, rootDirectory?: string): (context: tape.Test, code: string) => Expect;
export declare function snippet(context: tape.Test, files: {
[fileName: string]: string;
}, compiler?: Compiler): Snippet;