2022-06-13 17:43:58 -04:00
|
|
|
import { defineConfig } from 'cypress'
|
2023-04-19 10:50:25 -07:00
|
|
|
import { setupHardhatEvents } from 'cypress-hardhat'
|
2022-06-13 17:43:58 -04:00
|
|
|
|
|
|
|
export default defineConfig({
|
2022-06-16 10:08:25 -04:00
|
|
|
projectId: 'yp82ef',
|
2022-12-15 09:29:47 -05:00
|
|
|
defaultCommandTimeout: 24000, // 2x average block time
|
2022-06-13 17:43:58 -04:00
|
|
|
chromeWebSecurity: false,
|
2023-05-22 09:02:54 -07:00
|
|
|
experimentalMemoryManagement: true, // better memory management, see https://github.com/cypress-io/cypress/pull/25462
|
2023-10-18 12:44:52 -07:00
|
|
|
retries: { runMode: process.env.CYPRESS_RETRIES ? +process.env.CYPRESS_RETRIES : 1 },
|
2023-08-01 22:13:19 -07:00
|
|
|
video: false, // GH provides 2 CPUs, and cypress video eats one up, see https://github.com/cypress-io/cypress/issues/20468#issuecomment-1307608025
|
2022-06-13 17:43:58 -04:00
|
|
|
e2e: {
|
2023-04-19 10:50:25 -07:00
|
|
|
async setupNodeEvents(on, config) {
|
|
|
|
await setupHardhatEvents(on, config)
|
2023-07-05 16:30:54 -04:00
|
|
|
return config
|
2022-06-14 15:40:52 -04:00
|
|
|
},
|
2022-06-13 17:43:58 -04:00
|
|
|
baseUrl: 'http://localhost:3000',
|
2023-07-07 09:41:20 -07:00
|
|
|
specPattern: 'cypress/{e2e,staging}/**/*.test.ts',
|
2022-06-13 17:43:58 -04:00
|
|
|
},
|
|
|
|
})
|