Skip to content

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

License

Notifications You must be signed in to change notification settings

calebpeterson/jest-transformer-test-md

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published