UNPKG

@nx/cypress

Version:

The Nx Plugin for Cypress contains executors and generators allowing your workspace to use the powerful Cypress integration testing capabilities.

20 lines 1.26 kB
import { type Tree } from '@nx/devkit'; import type { ObjectLiteralExpression } from 'typescript'; import type { NxComponentTestingOptions, NxCypressE2EPresetOptions } from '../../plugins/cypress-preset'; export declare const CYPRESS_CONFIG_FILE_NAME_PATTERN = "cypress.config.{js,ts,mjs,cjs}"; export declare function addDefaultE2EConfig(cyConfigContents: string, options: NxCypressE2EPresetOptions, baseUrl: string): Promise<string>; /** * Adds the nxComponentTestingPreset to the cypress config file * Make sure after calling this the correct import statement is addeda * to bring in the nxComponentTestingPreset function **/ export declare function addDefaultCTConfig(cyConfigContents: string, options?: NxComponentTestingOptions): Promise<string>; /** * Adds the mount command for Cypress * Make sure after calling this the correct import statement is added * to bring in the correct mount from cypress. **/ export declare function addMountDefinition(cmpCommandFileContents: string): Promise<string>; export declare function getProjectCypressConfigPath(tree: Tree, projectRoot: string): string; export declare function resolveCypressConfigObject(cypressConfigContents: string): ObjectLiteralExpression | null; //# sourceMappingURL=config.d.ts.map