2022-07-05 11:49:54 +03:00
|
|
|
import { defineConfig } from 'cypress';
|
|
|
|
|
2022-08-10 16:43:31 +03:00
|
|
|
import * as customTasks from './cypress/support/tasks';
|
|
|
|
|
2022-07-05 11:49:54 +03:00
|
|
|
export default defineConfig({
|
|
|
|
env: {
|
|
|
|
BASE_URL: 'http://localhost:3000',
|
|
|
|
TEST_MODE: 'parallel',
|
|
|
|
MIGRATE_URL: 'http://localhost:9693/apis/migrate',
|
|
|
|
},
|
|
|
|
viewportWidth: 1280,
|
|
|
|
viewportHeight: 720,
|
|
|
|
chromeWebSecurity: false,
|
|
|
|
video: false,
|
|
|
|
projectId: '5yiuic',
|
|
|
|
retries: 1,
|
|
|
|
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) {
|
2022-08-10 16:43:31 +03:00
|
|
|
on('task', {
|
|
|
|
...customTasks,
|
|
|
|
});
|
|
|
|
|
|
|
|
return config;
|
2022-07-05 11:49:54 +03:00
|
|
|
},
|
|
|
|
baseUrl: 'http://localhost:3000',
|
2022-08-10 16:43:31 +03:00
|
|
|
specPattern: [
|
|
|
|
'cypress/e2e/**/*test.{js,jsx,ts,tsx}',
|
|
|
|
'cypress/support/**/*unit.test.{js,ts}',
|
|
|
|
],
|
2022-07-05 11:49:54 +03:00
|
|
|
},
|
|
|
|
});
|