Skip to content

chore: remove unused mocks#2075

Merged
thisislawatts merged 3 commits intomasterfrom
chore/remove-unused-mocks
Jan 27, 2023
Merged

chore: remove unused mocks#2075
thisislawatts merged 3 commits intomasterfrom
chore/remove-unused-mocks

Conversation

@thisislawatts
Copy link
Contributor

@thisislawatts thisislawatts commented Jan 23, 2023

PR Checklist

PR Type

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Developer experience (improves developer workflows for contributing to the project)

Description

Drops the src/mocks directory entirely in favour of local declaration for objects used as part of building the UI.

@thisislawatts thisislawatts self-assigned this Jan 23, 2023
@thisislawatts thisislawatts changed the title chore/remove unused mocks chore: remove unused mocks Jan 23, 2023
@thisislawatts thisislawatts force-pushed the chore/remove-unused-mocks branch from a783d3a to a722459 Compare January 25, 2023 20:09
@cypress
Copy link

cypress bot commented Jan 25, 2023

1 flaky tests on run #2861 ↗︎

0 52 0 0 Flakiness 1

Details:

chore: move map store helpers closer to call site

These helper methods are only used within the map.store and
should be moved closer to make the code structure easier to reason with.

Project: onearmy-community-platform Commit: d0230396f6
Status: Passed Duration: 02:57 💡
Started: Jan 25, 2023 8:35 PM Ended: Jan 25, 2023 8:38 PM
Flakiness  src/integration/common.spec.ts • 1 flaky test • ci-chrome

View Output Video

Test
[Common] > [User Menu] > [By Authenticated] Screenshot

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

These helper methods are only used within the map.store and
should be moved closer to make the code structure easier to reason with.
@thisislawatts thisislawatts marked this pull request as ready for review January 26, 2023 07:25
@thisislawatts thisislawatts requested a review from a team as a code owner January 26, 2023 07:25
Copy link
Member

@chrismclarke chrismclarke left a comment

Choose a reason for hiding this comment

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

Sounds good to me, particularly given that a lot of the files have code which aren't mocks but actually consts/templates, and much nicer if we need mocks in the future that we use generators for them (and combine with the cypress/unit test mocking)

@thisislawatts thisislawatts merged commit 74a1408 into master Jan 27, 2023
@thisislawatts thisislawatts deleted the chore/remove-unused-mocks branch January 27, 2023 21:54
@cypress cypress bot mentioned this pull request Jan 27, 2023
@onearmy-bot
Copy link
Collaborator

🎉 This PR is included in version 1.35.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants