UNPKG

@nxextensions/firebase-cypress

Version:

An NX Plugin for Firebase Applications that would like to use emulators for E2E testing with Cypress

31 lines (30 loc) 956 B
import type { InlineConfig } from 'vite'; interface BaseCypressPreset { videosFolder: string; screenshotsFolder: string; chromeWebSecurity: boolean; } export interface NxComponentTestingOptions { ctTargetName?: string; buildTarget?: string; bundler?: 'vite' | 'webpack'; compiler?: 'swc' | 'babel'; } export interface WebServerConfig { timeout?: number; reuseExistingServer?: boolean; } export type NxCypressE2EPresetOptions = { bundler?: string; cypressDir?: string; webServerCommands?: Record<string, string>; ciWebServerCommand?: string; webServerConfig?: WebServerConfig; viteConfigOverrides?: InlineConfig; emulatorCommand?: string; }; export declare function nxBaseCypressPreset(pathToConfig: string, options?: { testingType: 'component' | 'e2e'; }): BaseCypressPreset; export declare function nxE2EPreset(pathToConfig: string, options?: NxCypressE2EPresetOptions): any; export {};