Skip to content
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

test: Refactor unit test background state fixtures #6830

Merged
merged 2 commits into from
Jul 19, 2023

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Jul 18, 2023

Development & PR Process

  1. Follow MetaMask Mobile Coding Standards
  2. Add release-xx label to identify the PR slated for a upcoming release (will be used in release discussion)
  3. Add needs-dev-review label when work is completed
  4. Add needs-qa label when dev review is completed
  5. Add QA Passed label when QA has signed off

Description

All unit test background state fixtures have been updated to extend the initial background state fixture. Any background state modifications not necessary for tests to pass have been removed.

This should dramatically reduce the burden of maintaining these fixtures, especially as we update our core packages.

Issue

This was done to help with https://github.com/MetaMask/mobile-planning/issues/1016

Checklist

  • There is a related GitHub issue
  • Tests are included if applicable
  • Any added code is fully documented

@Gudahtt

This comment was marked as resolved.

@Gudahtt Gudahtt changed the title Refactor unit test background state fixtures test: Refactor unit test background state fixtures Jul 18, 2023
@Gudahtt Gudahtt force-pushed the add-initial-background-state-test-fixture branch from 82db9e7 to 74d425d Compare July 18, 2023 17:35
@Gudahtt Gudahtt force-pushed the refactor-unit-test-fixtures branch from a5679c1 to bb27190 Compare July 18, 2023 17:42
Base automatically changed from add-initial-background-state-test-fixture to main July 18, 2023 18:20
@Gudahtt Gudahtt force-pushed the refactor-unit-test-fixtures branch from bb27190 to 99c3254 Compare July 18, 2023 18:21
@Gudahtt Gudahtt marked this pull request as ready for review July 18, 2023 18:21
@Gudahtt Gudahtt requested a review from a team as a code owner July 18, 2023 18:21
@Gudahtt Gudahtt added No QA Needed Apply this label when your PR does not need any QA effort. needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) labels Jul 18, 2023
All unit test background state fixtures have been updated to extend the
initial background state fixture. Any background state modifications
not necessary for tests to pass have been removed.

This should dramatically reduce the burden of maintaining these
fixtures, especially as we update our core packages.
@Gudahtt Gudahtt force-pushed the refactor-unit-test-fixtures branch from 99c3254 to 6e94698 Compare July 19, 2023 15:59
@github-actions
Copy link
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.

Copy link
Contributor

@Cal-L Cal-L left a comment

Choose a reason for hiding this comment

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

LGTM

@Cal-L Cal-L added release-7.5.0 Issue or pull request that will be included in release 7.5.0 and removed needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) labels Jul 19, 2023
@sonarcloud
Copy link

sonarcloud bot commented Jul 19, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@Gudahtt Gudahtt merged commit ef0c597 into main Jul 19, 2023
13 checks passed
@Gudahtt Gudahtt deleted the refactor-unit-test-fixtures branch July 19, 2023 21:40
@github-actions github-actions bot locked and limited conversation to collaborators Jul 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
No QA Needed Apply this label when your PR does not need any QA effort. release-7.5.0 Issue or pull request that will be included in release 7.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants