Replies: 1 comment 3 replies
-
To ensure we are on the same page, you refer to something such as this? Makes sense to mock it once and re-use that. We haven't built a lot of helpers/general mocks for unit tests - there are only a few here: https://github.com/adobecom/milo/tree/main/test/helpers So to answer your question, my best guess is that no one started a re-usable mock and thus things have just been copied over. I 👍 your suggestion to creating one |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In some recent work, i counted at least 3 copies of utils.js in test code i had to amend at the same time i was changing utils. I could do diff and try to understand why, but i figured i could ask here :p
Beta Was this translation helpful? Give feedback.
All reactions