Hacker GitHub

← All repos

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

Mentions per year 3 mentions · busiest year 2020 (3)
20082026
  1. 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
  2. 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. ▲ 3
    Show HN: Doctest-JS. Write unit tests using comments in your code
    story by kiwicopple · 2020-02-22 · 1 comment