Path: blob/main/tests/smoke/typst-gather/README.md
6434 views
typst-gather smoke tests
These tests verify that quarto call typst-gather correctly:
Auto-detects Typst template files from
_extension.ymlScans those files for
@previewpackage importsDownloads the packages to
typst/packages/directoryUses
rootdirfrom config file to resolve relative pathsGenerates config with
--init-configCopies
@localpackages when configured in[local]sectionDetects
@localimports when generating config with--init-config
Test fixtures
_extensions/test-format/
Minimal Typst format extension for auto-detection test:
_extension.yml- Defines template and template-partialstemplate.typ- Imports@preview/example:0.1.0typst-show.typ- A template partial (no imports)
with-config/
Test fixture with explicit typst-gather.toml config:
typst-gather.toml- Config withrootdir = "_extensions/config-format"_extensions/config-format/- Extension directory
with-local/
Test fixture for @local package support:
typst-gather.toml- Config withrootdirand[local]section_extensions/local-format/- Extension that imports@local/my-local-pkglocal-packages/my-local-pkg/- Local typst package source
Manual testing
Cleanup
To reset the test fixtures: