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

🧪 get logs refactor #232

Merged
merged 4 commits into from
May 12, 2023
Merged

🧪 get logs refactor #232

merged 4 commits into from
May 12, 2023

Conversation

jtfirek
Copy link
Collaborator

@jtfirek jtfirek commented May 11, 2023

@dawsbot Another ready!

Helper function used here to keep it cleaner:
https://github.com/jtfirek/essential-eth/blob/2a96887e7d54a364f481663d9b4a13279d2bd43a/src/providers/test/json-rpc-provider/get-logs.test.ts#L182
I added it to #228 as another helper function that needs to be tested

@jtfirek
Copy link
Collaborator Author

jtfirek commented May 11, 2023

@dawsbot The mocking data is quite large for this test. What are your thoughts on creating a directory just for storing the mocking data? For any test with a large about of mocking data we could move those objects over to the directory for storing data?

@dawsbot
Copy link
Owner

dawsbot commented May 12, 2023

Having a separate location for the mocks can be good but I also like co-locating mock data next to the test which requires it. Let me see if I can add that into this PR as an example to follow.

@dawsbot dawsbot merged commit b079202 into dawsbot:master May 12, 2023
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.

2 participants