UNPKG

@n1k1t/unit-generator

Version:

Coverage based unit tests AI generator

30 lines 1.05 kB
import { Content } from './content'; export declare class Project { private provided; cwd: string; sources: { ignore: string[]; files: string[]; editorconfig?: string; dependencies?: Record<string, string>; }; content: { /** Renders `.package.json` content */ dependencies: () => Content; /** Renders `.editorconfig` content */ editorconfig: () => Content; /** Renders project files tree */ tree: (patterns?: string[]) => Content; }; files: { /** Returns glob result of the project files */ glob: (patterns?: string[]) => string[]; /** Adds path to the project files */ add: (path: string) => void; /** Removes file or directory from the project files */ rm: (path: string) => void; }; constructor(provided: Pick<Project, 'sources'> & Partial<Pick<Project, 'cwd'>>); static build(options?: Partial<Pick<Project, 'cwd'>>): Promise<Project>; } //# sourceMappingURL=project.d.ts.map