Skip to content

Commit 00e972e

Browse files
committed
og_image: Force test execution in CI instead of skipping when Typst unavailable
1 parent c9678fc commit 00e972e

File tree

1 file changed

+6
-0
lines changed
  • crates/crates_io_og_image/src

1 file changed

+6
-0
lines changed

crates/crates_io_og_image/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,12 @@ mod tests {
431431
}
432432

433433
fn skip_if_typst_unavailable() -> bool {
434+
if matches!(var("CI"), Ok(Some(_))) {
435+
// Do not skip tests in CI environments, even if Typst is unavailable.
436+
// We want the test to fail instead of silently skipping.
437+
return false;
438+
}
439+
434440
std::process::Command::new("typst")
435441
.arg("--version")
436442
.output()

0 commit comments

Comments
 (0)