3 ms·
We started using doctests to do our unit testing: https://github.com/supabase/doctest-js/blob/master/README.md https://github.com/supabase/doctest-js/blob/mast
by kiwicopple 7y ago
We started using doctests to do our unit testing:
https://github.com/supabase/doctest-js/blob/master/README.md https://github.com/supabase/doctest-js/blob/master/README.md
This was a good way to get our coverage up. Something about writing the ‘test’ in the context of the function makes it seem easier. Also it helps that you get tests + docs + intellisense all in one fell swoop.