I hereby claim:
- I am mdcruz on github.
- I am mcruzdrake (https://keybase.io/mcruzdrake) on keybase.
- I have a public key ASBCW185bs95I5mv0OgStsx433oL9YLH7bxUBgq41XOcUAo
To claim this, I am signing this object:
const { lighthouse, prepareAudit } = require('cypress-audit'); | |
module.exports = (on, config) => { | |
on('before:browser:launch', (browser = {}, launchOptions) => { | |
prepareAudit(launchOptions); | |
}); | |
on('task', { | |
lighthouse: lighthouse(), | |
}); |
describe('Lighthouse', () => { | |
it('should run performance audits using custom thresholds', () => { | |
cy.visit('/'); | |
const customThresholds = { | |
performance: 50, | |
accessibility: 50, | |
seo: 70, | |
'first-contentful-paint': 2000, | |
'largest-contentful-paint': 3000, |
describe('Lighthouse', () => { | |
it('should run performance audits', () => { | |
cy.visit('/'); | |
cy.lighthouse(); | |
}); | |
}); |
I hereby claim:
To claim this, I am signing this object: