DEV Community


Discussion on: TDD course with AdonisJs - 7. Moderators

dantewebmaster profile image
Dante J. Anjos

I`m a bit confused... when do I have to use unit or functional test?

michi profile image
Michael Z Author


unit tests literally only test a single unit (e.g. a method). They do not work directly with dependencies like database, filesystem, rest APIs etc.

Because adonis is a battery included framework and already comes with many features, we actually don't have to write too many unit tests, which is pretty neat.