mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-04 18:28:02 +00:00
fix: account for insta bug
This commit is contained in:
parent
5840a97c83
commit
da7825fd72
2 changed files with 2 additions and 2 deletions
1
crates/tinymist-tests/src/fixtures/playground/base.typ
Normal file
1
crates/tinymist-tests/src/fixtures/playground/base.typ
Normal file
|
@ -0,0 +1 @@
|
|||
|
|
@ -35,11 +35,10 @@ macro_rules! snapshot_testing {
|
|||
let mut settings = $crate::Settings::new();
|
||||
settings.set_prepend_module_to_snapshot(false);
|
||||
|
||||
let snapshot_dir = format!("{base_dir}/fixtures/{name}/snaps");
|
||||
let snapshot_dir = format!("{}/src/fixtures/{name}/snaps", env!("CARGO_MANIFEST_DIR"));
|
||||
settings.set_snapshot_path(snapshot_dir);
|
||||
settings.bind(|| {
|
||||
let glob_path = format!("fixtures/{name}/*.typ");
|
||||
println!("Running snapshot tests for: {glob_path}");
|
||||
$crate::glob!(base_dir, &glob_path, |path| {
|
||||
let contents = std::fs::read_to_string(path).unwrap();
|
||||
#[cfg(windows)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue