22 lines
655 B
TypeScript
22 lines
655 B
TypeScript
import { defineConfig } from 'cypress';
|
|
import { nxE2EPreset } from '@nrwl/cypress/plugins/cypress-preset';
|
|
import setupNodeEvents from './src/plugins/index';
|
|
|
|
const cypressJsonConfig = {
|
|
fileServerFolder: '.',
|
|
fixturesFolder: './src/fixtures',
|
|
video: true,
|
|
videosFolder: '../../dist/cypress/graph/client-e2e/videos',
|
|
screenshotsFolder: '../../dist/cypress/graph/client-e2e/screenshots',
|
|
chromeWebSecurity: false,
|
|
specPattern: './src/e2e/**/watch-mode-*.cy.{js,jsx,ts,tsx}',
|
|
supportFile: 'src/support/e2e.ts',
|
|
};
|
|
export default defineConfig({
|
|
e2e: {
|
|
...nxE2EPreset(__dirname),
|
|
...cypressJsonConfig,
|
|
setupNodeEvents,
|
|
},
|
|
});
|