calebpeterson / jest-transformer-test-md

Write your Jest tests as a Markdown document with embedded code snippets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Write your Jest tests in Markdown

Document public-facing APIs while simultaneously testing them. The best part is your documentation and test suites are now trivially publishable!

How it works

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 🤓

Configuring Jest

Check out this repository's jest.config.js.

Resources

Putting these here so I can find them later if/when this transformer is expanded:

About

Write your Jest tests as a Markdown document with embedded code snippets

License:Other


Languages

Language:JavaScript 100.0%