What is the best library for mocking dependencies compatible with AVA? #2727
Answered
by
novemberborn
arturtamborski
asked this question in
Q&A
-
Hi, I'm looking for the best (or realistically speaking, any) library that can be used for mocking external deps from node modules so that I can write better tests. Any suggestions as to what should I use? I heard about |
Beta Was this translation helpful? Give feedback.
Answered by
novemberborn
Mar 27, 2021
Replies: 1 comment 5 replies
-
Anything that works with Node.js is compatible with AVA. I don't find myself needing to mock dependencies very often, and I think it's something best avoided, but I can't speak to your code. |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
arturtamborski
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Anything that works with Node.js is compatible with AVA.
I don't find myself needing to mock dependencies very often, and I think it's something best avoided, but I can't speak to your code.