-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
core: remove legacy runner #15253
core: remove legacy runner #15253
Conversation
expect(await gatherer.beforePass(fakeParam)).toBe(undefined); | ||
expect(await gatherer.pass(fakeParam)).toBe(undefined); | ||
expect(await gatherer.afterPass(fakeParam, fakeParam)).toBe(undefined); | ||
}); |
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.
After removing the legacy beforePass
/afterPass
stuff this test file really isn't testing anything. The base gatherer gets plenty of test coverage from other files.
@@ -7,15 +7,12 @@ | |||
import jestMock from 'jest-mock'; | |||
|
|||
import ImageElements from '../../../gather/gatherers/image-elements.js'; | |||
import {NetworkRecorder} from '../../../lib/network-recorder.js'; | |||
import {createMockContext, createMockDriver, createMockSession} from |
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.
I recommend disabling whitespace changes to review this file
@@ -24,7 +24,6 @@ import { | |||
renderHtmlInIframe, | |||
selectCategories, | |||
selectDevice, | |||
setLegacyNavigation, |
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.
I recommend reviewing this file with whitespace changes off
* Legacy property used to define the artifact ID. In Fraggle Rock, the artifact ID lives on the config. | ||
* @return {keyof LH.GathererArtifacts} | ||
*/ | ||
get name() { |
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.
Could have kept this for convenience, but since it requires some substr
hackery just to work with rollup I figured it's best not to rely on it if we don't have to.
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.
Removing 6800 LOC, most of which have been around for 5+ years (or maybe 8?), and all tests still pass? LGTM.
Biggest, baddest part of #15060 that's 3 years in the making.
There are a few follow-up changes we should make once this lands:
FRTransitional...
/FRThis
/FRThat
types