Skip to content

Stub out background and methods in actions test#10321

Merged
tmashuang merged 1 commit intodevelopfrom
action-background-stub
Feb 2, 2021
Merged

Stub out background and methods in actions test#10321
tmashuang merged 1 commit intodevelopfrom
action-background-stub

Conversation

@tmashuang
Copy link
Copy Markdown
Contributor

@tmashuang tmashuang commented Jan 30, 2021

Move from using the backgound/metamask-controller instance to a stubbed/mocked out verison of it and its methods.

Move from using the backgound/metamask-controller instance to a stubbed/mocked out verison of the background methods.
@tmashuang tmashuang requested a review from a team as a code owner January 30, 2021 16:47
@tmashuang tmashuang requested a review from Gudahtt January 30, 2021 16:47
@github-actions
Copy link
Copy Markdown
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [9ed3805]
Page Load Metrics (601 ± 53 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint467960105
domContentLoaded37187960011053
load37288060111053
domInteractive37087760011053

@tmashuang tmashuang changed the title Stub out background and bg methods in actions test Stub out background and methods in actions test Jan 31, 2021
Copy link
Copy Markdown
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, this looks incredible! Using a stub that is recreated for each test instead of a real background instance is a huge improvement. The new tests, improved descriptions, and updates to use stricter assertions are greatly appreciated as well.

@tmashuang tmashuang merged commit 99b6fee into develop Feb 2, 2021
@tmashuang tmashuang deleted the action-background-stub branch February 2, 2021 08:55
@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants