- multiple DNS resolution strategie - graceful fallbacks between IPv6 and IPv4 addresses - network error reporting in fetch fix - compatibility with cypress testing (I HOPE)
30 lines
649 B
TypeScript
30 lines
649 B
TypeScript
import { defineConfig } from 'cypress';
|
|
import { initializeDnsCacheForTesting } from './server/utils/dnsCacheManager';
|
|
|
|
export default defineConfig({
|
|
projectId: 'xkm1b4',
|
|
e2e: {
|
|
baseUrl: 'http://localhost:5055',
|
|
video: true,
|
|
experimentalSessionAndOrigin: true,
|
|
setupNodeEvents(on) {
|
|
on('task', {
|
|
initDnsCache() {
|
|
initializeDnsCacheForTesting();
|
|
return null;
|
|
},
|
|
});
|
|
},
|
|
},
|
|
env: {
|
|
ADMIN_EMAIL: 'admin@seerr.dev',
|
|
ADMIN_PASSWORD: 'test1234',
|
|
USER_EMAIL: 'friend@seerr.dev',
|
|
USER_PASSWORD: 'test1234',
|
|
},
|
|
retries: {
|
|
runMode: 2,
|
|
openMode: 0,
|
|
},
|
|
});
|