interface GenerateOptions

Where to scaffold a test file. target is a project-relative path; a missing .js/.ts extension becomes .js, and missing directories are created.

const options: GenerateOptions = { target: 'test/login-test' };
options.target; // written as test/login-test.js

Properties

target: string

Project-relative path of the test file to write.

optional
cwd: string

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

Usage

import { type GenerateOptions } from "lib/commands/generate.ts";