Document public-facing APIs while simultaneously testing them. The best part is your documentation and test suites are now trivially publishable!
Write normal Markdown (like this README.md
), and then include
your tests as multiline code blocks.
expect(true).toBe(true);
In fact, this README.md
is part of the test suite for this repo 🤓
Check out this repository's jest.config.js
.
Putting these here so I can find them later if/when this transformer is expanded: