@nx/cypress
Version:
24 lines (23 loc) • 850 B
TypeScript
import { Tree } from '@nx/devkit';
export interface CypressBaseSetupSchema {
project: string;
/**
* directory from the projectRoot where cypress files will be generated
* default is `cypress`
* */
directory?: string;
js?: boolean;
jsx?: boolean;
/**
* When set, the generated `cypress.config` includes the e2e preset inline so
* a fresh config is complete on first write - no post-hoc AST merge or
* overwrite. Omit for a bare `defineConfig({})` (e.g. component testing,
* which merges in its own `component` block afterwards).
*/
e2ePreset?: {
/** Pre-formatted (indented) JSON of NxCypressE2EPresetOptions. */
presetOptions: string;
baseUrl?: string;
};
}
export declare function addBaseCypressSetup(tree: Tree, options: CypressBaseSetupSchema): void;