calibre
Version:
Calibre - Page speed performance testing with Google Lighthouse
32 lines (28 loc) • 462 B
JavaScript
import { request } from './graphql.js'
const LIST_QUERY = `
query {
metrics {
__typename
name
value
label
shortLabel
budgetThreshold
formatter
docsPath
goodStop
poorStop
recommended
category {
name
label
value
}
}
}
`
const list = async () => {
const response = await request({ query: LIST_QUERY })
return response.metrics
}
export { list }