kiwicopple/doctest-js
View on GitHub ↗ ★ 104 JavaScript
Run JSDoc style doc examples as tests within your test suite
3 mentions on Hacker News by 1 person: 1 story, 2 comments · first 2020-02-22 · latest 2020-03-22
20082026
-
For anyone looking for something similar with JS, we wrote doctest-js: https://github.com/supabase/doctest-js It allows you to write Unit Tests using JSDoc It won't necessarily stop your documentation from building but offers another good…
comment by kiwicopple · 2020-03-22 · in Technical Writing Courses -
We started using doctests to do our unit testing: 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…
comment by kiwicopple · 2020-02-24 · in Warming Up to Unit Testing -
▲ 3
Show HN: Doctest-JS. Write unit tests using comments in your codestory by kiwicopple · 2020-02-22 · 1 comment