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: use mock data in more places #771

Merged
merged 1 commit into from
Aug 26, 2024
Merged

test: use mock data in more places #771

merged 1 commit into from
Aug 26, 2024

Conversation

EvanHahn
Copy link
Contributor

Our tests have several spots where we create mock data, such as observations or presets. We typically rely on @mapeo/mock-data for this, but could use it in a few more places. That's what this commit does!

I think this is useful for three reasons:

  1. It's less code.
  2. It doesn't need to be manually updated when we make schema updates.
  3. It will make an upcoming change smaller.

Our tests have several spots where we create mock data, such as
observations or presets. We typically rely on `@mapeo/mock-data` for
this, but could use it in a few more places. That's what this commit
does!

I think this is useful for three reasons:

1. It's less code.
2. It doesn't need to be manually updated when we make schema updates.
3. It will make [an upcoming change][0] smaller.

[0]: #715
@EvanHahn EvanHahn merged commit 9b4cdf6 into main Aug 26, 2024
7 checks passed
@EvanHahn EvanHahn deleted the mock-data-in-tests branch August 26, 2024 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants