UNPKG

graphdb-workbench-tests

Version:
48 lines (44 loc) 1.42 kB
import { defineConfig } from 'cypress'; import setupPlugins from './plugins/index.js'; const isCoverage = process.env.COVERAGE === 'true'; const loadCodeCoverage = async (on, config) => { const mod = await import('@bahmutov/cypress-code-coverage/plugin'); const plugin = ('default' in mod) ? mod.default : mod; plugin(on, config); }; export default defineConfig({ projectId: 'v35btb', fixturesFolder: 'fixtures', screenshotsFolder: 'report/screenshots', videosFolder: 'report/videos', video: true, defaultCommandTimeout: 25000, numTestsKeptInMemory: 10, viewportWidth: 1280, viewportHeight: 720, e2e: { retries: { runMode: 2, openMode: 0 }, // We've imported your old cypress plugins here. // You may want to clean this up later by importing these. async setupNodeEvents(on, config) { setupPlugins(on, config); if (isCoverage) { await loadCodeCoverage(on, config); } return config; }, baseUrl: 'http://localhost:9000', specPattern: 'e2e-security/**/*.{js,jsx,ts,tsx}', supportFile: 'support/e2e.js', reporter: "cypress-multi-reporters", reporterOptions: { configFile: 'cypress-reporter-config.json' } }, env: { set_default_user_data: true } });