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-12-02 13:02:18 +03:00
|
|
|
type ConfigOptions = Parameters<typeof defineConfig>[0];
|
|
|
|
interface MyConfigOptions extends ConfigOptions {
|
|
|
|
useRelativeSnapshots?: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
const myDefineConfig = (config: MyConfigOptions) => defineConfig(config);
|
|
|
|
|
|
|
|
export default myDefineConfig({
|
2022-07-05 11:49:54 +03:00
|
|
|
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) {
|
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
|
|
|
},
|
2022-12-02 13:02:18 +03:00
|
|
|
useRelativeSnapshots: true,
|
2022-07-05 11:49:54 +03:00
|
|
|
});
|