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

microlinkhq / browserless / 14312183135

07 Apr 2025 02:42PM UTC coverage: 85.025%. Remained the same
14312183135

push

github

web-flow
chore: update dependencies (#610)

* chore: update dependencies

* test: update snapshot

219 of 254 branches covered (86.22%)

Branch coverage included in aggregate %.

1138 of 1342 relevant lines covered (84.8%)

2756.52 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