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