-
Notifications
You must be signed in to change notification settings - Fork 9.5k
tests: update to typescript 3.9.7 #11158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,11 +15,11 @@ const ChromeLauncher = require('chrome-launcher'); | |
const ChromeProtocol = require('../../../../lighthouse-core/gather/connections/cri.js'); | ||
|
||
// Load bundle, which creates a `global.runBundledLighthouse`. | ||
// @ts-ignore - file won't exist until `yarn build-all`, but not used for types anyways. | ||
// @ts-ignore - file exists if `yarn build-all` is run, but not used for types anyways. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the only remaining |
||
require('../../../../dist/lighthouse-dt-bundle.js'); // eslint-disable-line | ||
|
||
/** @type {import('../../../../lighthouse-core/index.js')} */ | ||
// @ts-ignore - not worth giving test global an actual type. | ||
// @ts-expect-error - not worth giving test global an actual type. | ||
const lighthouse = global.runBundledLighthouse; | ||
|
||
/** | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,9 +135,14 @@ class RenderBlockingResources extends Audit { | |
const wastedCssBytes = await RenderBlockingResources.computeWastedCSSBytes(artifacts, context); | ||
|
||
const metricSettings = {throttlingMethod: 'simulate'}; | ||
|
||
/** @type {LH.Artifacts.MetricComputationData} */ | ||
// @ts-expect-error - TODO(bckenny): allow optional `throttling` settings | ||
const metricComputationData = {trace, devtoolsLog, simulator, settings: metricSettings}; | ||
// @ts-ignore - TODO(bckenny): allow optional `throttling` settings | ||
const fcpSimulation = await FirstContentfulPaint.request(metricComputationData, context); | ||
|
||
// Cast to just `LanternMetric` since we explicitly set `throttlingMethod: 'simulate'`. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm surprised this wasn't caught in earlier versions |
||
const fcpSimulation = /** @type {LH.Artifacts.LanternMetric} */ | ||
(await FirstContentfulPaint.request(metricComputationData, context)); | ||
const fcpTsInMs = traceOfTab.timestamps.firstContentfulPaint / 1000; | ||
|
||
const nodesByUrl = getNodesAndTimingByUrl(fcpSimulation.optimisticEstimate.nodeTimings); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are three or four places where we had unnecessary
@ts-ignore
sThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
THANKS FOR ALL HELP