• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

microlinkhq / browserless / 15132629720

20 May 2025 08:26AM UTC coverage: 85.158%. First build
15132629720

Pull #615

github

web-flow
Merge 9fa660b6e into ed927a9e3
Pull Request #615: chore: use null-prototype-object

219 of 254 branches covered (86.22%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

1158 of 1363 relevant lines covered (84.96%)

2714.43 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

96.67
/packages/lighthouse/src/index.js
1
'use strict'
1✔
2

1✔
3
const lighthouse = require('./lighthouse')
1✔
4
const getConfig = require('./get-config')
1✔
5

1✔
6
module.exports =
1✔
7
  getBrowserless =>
1✔
8
    async (url, { output = 'json', timeout, ...opts } = {}) => {
5✔
9
      let teardown
5✔
10
      const browserless = await getBrowserless(fn => (teardown = fn))
5✔
11

5✔
12
      const fn = page => async () =>
5✔
13
        lighthouse({
5✔
14
          config: await getConfig({ ...opts, output }),
5✔
15
          page,
5✔
16
          url
5✔
17
        })
5✔
18

5✔
19
      const result = await browserless.withPage(fn, { timeout })()
5✔
20
      if (teardown) await teardown()
5!
21
      return result
4✔
22
    }
5✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc