interface InitOptions

Where to bootstrap, and which HTML fixtures to write. Both default the way the CLI does: the working directory, and whatever .html arguments were passed.

const options: InitOptions = { cwd: '/proj', htmlPaths: ['test/index.html'] };
options.htmlPaths; // ['test/index.html'] — written relative to the project root

Properties

optional
cwd: string

Directory to find the project root from. Defaults to process.cwd().

optional
htmlPaths: string[]

HTML fixtures to create, relative to the project root. Defaults to ['test/tests.html'].

Usage

import { type InitOptions } from "lib/commands/init.ts";