Skip to content

Commit cf0d0c7

Browse files
allow typst tests to use output-ext
sometimes it's worthwhile to have typst tests without compilation e.g. when they have bogus image paths in them and would fail but testing the typ is enough
1 parent edf4f8d commit cf0d0c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/smoke/smoke-all.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ function resolveTestSpecs(
219219
} else if (verifyMap[key]) {
220220
// FIXME: We should find another way that having this requirement of keep-* in the metadata
221221
if (key === "ensureTypstFileRegexMatches") {
222-
if (!metadata.format?.typst?.['keep-typ'] && !metadata['keep-typ']) {
222+
if (!metadata.format?.typst?.['keep-typ'] && !metadata['keep-typ'] && metadata.format?.typst?.['output-ext'] !== 'typ' && metadata['output-ext'] !== 'typ') {
223223
throw new Error(`Using ensureTypstFileRegexMatches requires setting 'keep-typ: true' in file ${input}`);
224224
}
225225
} else if (key === "ensureLatexFileRegexMatches") {

0 commit comments

Comments
 (0)