aada666c1a
* build: reduce retries to discourage flakes * fix: lazy-load asset logos * chore: simplify logging test * fix: guard against dutch orders for pricing * test: only stub non-pricing quotes * fix: opt in flicker * test: mock statsig
20 lines
808 B
TypeScript
20 lines
808 B
TypeScript
import { defineConfig } from 'cypress'
|
|
import { setupHardhatEvents } from 'cypress-hardhat'
|
|
|
|
export default defineConfig({
|
|
projectId: 'yp82ef',
|
|
defaultCommandTimeout: 24000, // 2x average block time
|
|
chromeWebSecurity: false,
|
|
experimentalMemoryManagement: true, // better memory management, see https://github.com/cypress-io/cypress/pull/25462
|
|
retries: { runMode: process.env.CYPRESS_RETRIES ? +process.env.CYPRESS_RETRIES : 1 },
|
|
video: false, // GH provides 2 CPUs, and cypress video eats one up, see https://github.com/cypress-io/cypress/issues/20468#issuecomment-1307608025
|
|
e2e: {
|
|
async setupNodeEvents(on, config) {
|
|
await setupHardhatEvents(on, config)
|
|
return config
|
|
},
|
|
baseUrl: 'http://localhost:3000',
|
|
specPattern: 'cypress/{e2e,staging}/**/*.test.ts',
|
|
},
|
|
})
|