graphql-engine/console/cypress.config.ts
Stefano Magni 5764174087 test(console): Skip a lot of flaky E2E tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5535
GitOrigin-RevId: 0544edf4d8fdd1a6a8cc326a8b107ee47d2389c3
2022-08-31 08:02:51 +00:00

33 lines
772 B
TypeScript

import { defineConfig } from 'cypress';
import * as customTasks from './cypress/support/tasks';
export default defineConfig({
env: {
TEST_MODE: 'parallel',
MIGRATE_URL: 'http://localhost:9693/apis/migrate',
},
viewportWidth: 1280,
viewportHeight: 720,
chromeWebSecurity: false,
video: false,
projectId: '5yiuic',
numTestsKeptInMemory: 10,
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
on('task', {
...customTasks,
});
return config;
},
baseUrl: 'http://localhost:3000',
specPattern: [
'cypress/e2e/**/*test.{js,jsx,ts,tsx}',
'cypress/support/**/*unit.test.{js,ts}',
],
},
});