1 2 3 4 5 6 7 8 9 10
use std::fs; #[test] fn snapshot_all_fixtures() { insta::glob!("fixtures/*.md", |path| { let markdown = fs::read_to_string(path).unwrap(); let html = birta::render::render(&markdown, None); insta::assert_snapshot!(html); }); }