mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-28 11:21:21 +00:00
38 lines
1.2 KiB
TypeScript
38 lines
1.2 KiB
TypeScript
import { NxComponentTestingOptions } from '@nx/cypress/plugins/cypress-preset';
|
|
type ViteDevServer = {
|
|
framework: 'react';
|
|
bundler: 'vite';
|
|
viteConfig?: any;
|
|
};
|
|
type WebpackDevServer = {
|
|
framework: 'react';
|
|
bundler: 'webpack';
|
|
webpackConfig?: any;
|
|
};
|
|
/**
|
|
* React nx preset for Cypress Component Testing
|
|
*
|
|
* This preset contains the base configuration
|
|
* for your component tests that nx recommends.
|
|
* including a devServer that supports nx workspaces.
|
|
* you can easily extend this within your cypress config via spreading the preset
|
|
* @example
|
|
* export default defineConfig({
|
|
* component: {
|
|
* ...nxComponentTestingPreset(__dirname)
|
|
* // add your own config here
|
|
* }
|
|
* })
|
|
*
|
|
* @param pathToConfig will be used for loading project options and to construct the output paths for videos and screenshots
|
|
* @param options override options
|
|
*/
|
|
export declare function nxComponentTestingPreset(pathToConfig: string, options?: NxComponentTestingOptions): {
|
|
specPattern: string;
|
|
devServer: ViteDevServer | WebpackDevServer;
|
|
videosFolder: string;
|
|
screenshotsFolder: string;
|
|
chromeWebSecurity: boolean;
|
|
};
|
|
export {};
|
|
//# sourceMappingURL=index.d.ts.map
|