2022-11-04 20:04:13 -07:00
|
|
|
const { defineConfig } = require('cypress');
|
2023-01-04 22:15:10 -08:00
|
|
|
const { lighthouse, prepareAudit } = require('@cypress-audit/lighthouse');
|
2022-11-04 20:04:13 -07:00
|
|
|
|
|
|
|
module.exports = defineConfig({
|
|
|
|
projectId: 'wwi3xe',
|
|
|
|
e2e: {
|
2024-11-15 18:39:15 -08:00
|
|
|
supportFile: 'cypress/support/e2e.js',
|
2022-11-04 20:04:13 -07:00
|
|
|
setupNodeEvents(on, config) {
|
2023-01-04 22:15:10 -08:00
|
|
|
on('before:browser:launch', (browser = {}, launchOptions) => {
|
|
|
|
prepareAudit(launchOptions);
|
|
|
|
});
|
|
|
|
|
|
|
|
on('task', {
|
|
|
|
lighthouse: lighthouse(),
|
|
|
|
});
|
2022-11-04 20:04:13 -07:00
|
|
|
},
|
|
|
|
},
|
2024-04-17 22:10:39 -07:00
|
|
|
retries: 3,
|
2022-11-04 20:04:13 -07:00
|
|
|
});
|