mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: declare toBeGolden to TypeScript (#6080)
Which means we can avoid all the ts-expect-errors on any `toBeGolden` calls.
This commit is contained in:
@@ -123,8 +123,6 @@ describe('Coverage specs', function () {
|
||||
const coverage = await page.coverage.stopJSCoverage();
|
||||
expect(
|
||||
JSON.stringify(coverage, null, 2).replace(/:\d{4}\//g, ':<PORT>/')
|
||||
// TODO (@jackfranklin) extend the Expect typedefs to fix this
|
||||
// @ts-expect-error toBeGolden matcher
|
||||
).toBeGolden('jscoverage-involved.txt');
|
||||
});
|
||||
describe('resetOnNavigation', function () {
|
||||
@@ -227,8 +225,6 @@ describe('Coverage specs', function () {
|
||||
const coverage = await page.coverage.stopCSSCoverage();
|
||||
expect(
|
||||
JSON.stringify(coverage, null, 2).replace(/:\d{4}\//g, ':<PORT>/')
|
||||
// TODO (@jackfranklin) extend the Expect typedefs to fix this
|
||||
// @ts-expect-error toBeGolden matcher
|
||||
).toBeGolden('csscoverage-involved.txt');
|
||||
});
|
||||
it('should ignore injected stylesheets', async () => {
|
||||
|
||||
Reference in New Issue
Block a user