Add performance testing to Cypress results
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
const { defineConfig } = require('cypress');
|
||||
const { lighthouse, prepareAudit } = require('@cypress-audit/lighthouse');
|
||||
|
||||
module.exports = defineConfig({
|
||||
projectId: 'wwi3xe',
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {
|
||||
// implement node event listeners here
|
||||
on('before:browser:launch', (browser = {}, launchOptions) => {
|
||||
prepareAudit(launchOptions);
|
||||
});
|
||||
|
||||
on('task', {
|
||||
lighthouse: lighthouse(),
|
||||
});
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user