denoland / deno_doc

Documentation generator for Deno
MIT License
262 stars 55 forks source link

test: use 'insta' for json snapshot testing #588

Closed kt3k closed 5 months ago

kt3k commented 5 months ago

This PR updates the snapshot testing setup for module_doc, symbol_search, symbol_group test cases in html_test.rs. Now they use insta. This makes viewing diff easier, and also managing snapshot files easier.

(Note: tree-sitter, syntect variations of module_doc and symbol_group tests are skipped. Let me know if this is problematic.)

crowlKats commented 5 months ago

tree-sitter, syntect variations of module_doc and symbol_group tests are skipped. Let me know if this is problematic.

This is fine, simplifies things a lot. we probably should add some unit tests for the highlighters though, but can keep that in a follow-up