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

chore: refactor remaining database functions in testing env #171

Merged
merged 7 commits into from
Dec 30, 2024

Conversation

UlisesGascon
Copy link
Member

@UlisesGascon UlisesGascon commented Dec 30, 2024

Main Changes

There were quite a few funcitonality duplicated both at src/store and utils, the latter used only in tests. Most of them were refactored, moved to be in src/store, leaving in utils those ones related to destroy (reset) the database to make up the tests.

Context

Changelog

Guillermo C. Martínez added 6 commits December 27, 2024 12:36
Functions in `__utils__` related to data (pretty much all of them) where moved to `store`,
shrinking the `__utils__` content dramatically, removing duplicate db code,
gathering all db data functions in one place and leaving only the `resetDatabase` function
there which is only used in tests.
@UlisesGascon UlisesGascon changed the title Refactor remaining database functions Refactor remaining database functions (testing) Dec 30, 2024
@UlisesGascon UlisesGascon marked this pull request as ready for review December 30, 2024 09:26
@UlisesGascon UlisesGascon self-assigned this Dec 30, 2024
@UlisesGascon UlisesGascon merged commit 593442f into main Dec 30, 2024
3 checks passed
@UlisesGascon UlisesGascon changed the title Refactor remaining database functions (testing) chore: refactor remaining database functions in testing env Dec 30, 2024
@UlisesGascon UlisesGascon deleted the pr-170 branch December 30, 2024 09:26
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.

Remove most of the store functions in __utils__
1 participant