2022-11-05 04:04:13 +01:00
|
|
|
const { defineConfig } = require('cypress');
|
2023-01-05 07:15:10 +01:00
|
|
|
const { lighthouse, prepareAudit } = require('@cypress-audit/lighthouse');
|
2022-11-05 04:04:13 +01:00
|
|
|
|
|
|
|
module.exports = defineConfig({
|
|
|
|
projectId: 'wwi3xe',
|
|
|
|
e2e: {
|
|
|
|
setupNodeEvents(on, config) {
|
2023-01-05 07:15:10 +01:00
|
|
|
on('before:browser:launch', (browser = {}, launchOptions) => {
|
|
|
|
prepareAudit(launchOptions);
|
|
|
|
});
|
|
|
|
|
|
|
|
on('task', {
|
|
|
|
lighthouse: lighthouse(),
|
|
|
|
});
|
2022-11-05 04:04:13 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|