tytanic-update(1)

πŸ“¦ version 0.4.1, in nixpkgs unstable

πŸ¦‹ tytanic-update β€” the tt update page, bestie edition πŸ’…

okay so you found tytanic-update(1), the part of the tytanic manual where we compile stuff and update tests. this is the general commands manual and honestly it ate. let's go πŸŽ€


✨ NAME ✨

tytanic-update β€” compile and update tests 🧚

✨ SYNOPSIS ✨

tt update [--timestamp] [--warnings] [--diagnostic-format] [--compare]
[--no-compare] [--max-delta] [--max-deviations] [--dir] [-r|--root]
[-j|--jobs] [--ppi] [--render-bleed] [--vcs] [--export-ephemeral]
[--use-embedded-fonts] [--no-export-ephemeral] [--no-use-embedded-fonts]
[--optimize-refs] [--use-system-fonts] [--no-optimize-refs]
[--no-use-system-fonts] [-f|--fail-fast] [--font-path]
[-F|--no-fail-fast] [--package-path] [-e|--expression]
[--package-cache-path] [--certificate] [-s|--skip] [--color]
[-S|--no-skip] [--force] [-v|--verbose]... [-h|--help] [TEST]

like yes that's a lot of flags, but we're gonna get through them together, no cap 🫢

🌸 DESCRIPTION 🌸

Compile and update tests. that's the whole vibe. it compiles ur tests and updates them. periodt πŸ’…

✨ OPTIONS ✨

  • --timestamp <now|<UNIX_TIMESTAMP>> [default: 0] β€” the timestamp used for compilation ⏰. for more info, see https://reproducible-builds.org/specs/source-date-epoch/. may also be specified with the SOURCE_DATE_EPOCH environment variable.
  • --warnings <WHAT> [default: emit] β€” how to handle warnings. the possible values are:
    • ignore: ignore warnings πŸ™ˆ
    • emit: emit warnings
    • promote: promote warnings to errors πŸ”₯
  • --diagnostic-format <FORMAT> [default: human] β€” the diagnostic format to use. possible values:
    • human: display richly formatted messages showing the source code and context πŸŽ€
    • short: display short single-line diagnostics
  • --compare β€” compare tests if they have references (this is the default) πŸ‘‘
  • --no-compare β€” don't compare tests
  • --max-delta <MAX_DELTA> β€” the maximum allowed delta per pixel. so like, if a single channel (red/green/blue/alpha component) of a pixel differs by more than this much between reference and output, the pixel is counted as a deviation. defaults to 1, and can be configured in the manifest.
  • --max-deviations <MAX_DEVIATIONS> β€” the maximum allowed deviations per comparison. if a reference and output image have more than this, then it's counted as a comparison failure 😭. defaults to 0, and can be configured in the manifest.
  • --dir <DIR> β€” the document direction. this is used to correctly align images with different dimensions when generating diff images. defaults to ltr, and can be configured in the manifest. possible values:
    • ltr: the document is read left-to-right
    • rtl: the document is read right-to-left
  • -r, --root <ROOT> β€” the project root directory. if none is given, then the first ancestor with a typst.toml is used. may also be specified with the TYPST_ROOT environment variable 🌱
  • -j, --jobs <JOBS> β€” the number of threads to use for compilation 🧡
  • --ppi <PPI> β€” the pixel-per-inch value to use for export. defaults to 144.0, and can be configured in the manifest.
  • --render-bleed <RENDER_BLEED> β€” whether the rendered export should have it's bleed regions rendered. defaults to false, and can be configured in the manifest. possible values:
    • true
    • false
  • --vcs <VCS> [default: auto] β€” the version control system to use. possible values:
    • auto: auto detect the VCS from the current directory πŸ”
    • git: Git
    • sapling: a git-compatible VCS developed at Meta
    • jujutsu: a git-compatible VCS
  • --export-ephemeral β€” export ephemeral documents (the default ✨). ephemeral documents are those which are created for each test run, i.e. non-persistent ones.
  • --no-export-ephemeral β€” don't export temporaries
  • --optimize-refs β€” optimize persistent references (default πŸ‘‘
  • --no-optimize-refs β€” don't optimize persistent references
  • -f, --fail-fast β€” abort after the first test failure (default)
  • -F, --no-fail-fast β€” don't abort after the first test failure
  • -e, --expression <EXPR> β€” a test set expression for filtering tests. see the language reference and guide at https://typst-community.github.io/tytanic/index.html for more info πŸ¦‹
  • -s, --skip β€” automatically remove skipped tests from test sets (default). equivalent to wrapping the test set expression in (...) ~ skip().
  • -S, --no-skip β€” don't automatically remove skipped tests from test sets
  • --force β€” update all included tests, even if they didn't fail πŸ’ͺ
  • -h, --help β€” print help (see a summary with -h)
  • [TEST] β€” the tests to operate on. this will always ignore the [skip] annotation and fail if a test can't be found. like it does not care, bestie πŸ’€

πŸŽ€ FONT OPTIONS πŸŽ€

  • --use-embedded-fonts β€” use embedded fonts (default)
  • --no-use-embedded-fonts β€” don't use embedded fonts
  • --use-system-fonts β€” use system fonts
  • --no-use-system-fonts β€” don't use system fonts (default)
  • --font-path <DIR> β€” add a directory to read fonts from (can be repeated πŸ”). may also be specified with the TYPST_FONT_PATHS environment variable.

πŸ“ PACKAGE OPTIONS πŸ“

  • --package-path <DIR> β€” custom path to local packages, defaults to system-dependent location. may also be specified with the TYPST_PACKAGE_PATH environment variable.
  • --package-cache-path <DIR> β€” custom path to package cache, defaults to system-dependent location. may also be specified with the TYPST_PACKAGE_CACHE_PATH environment variable.
  • --certificate <CERTIFICATE> β€” path to a custom CA certificate to use when making network requests πŸ”. may also be specified with the TYPST_CERT environment variable.

🌈 OUTPUT OPTIONS 🌈

  • --color[=<WHEN>] [default: auto] β€” when to use colorful output 🌸. if set to auto, color will only be enabled if a capable terminal is detected. possible values:
    • auto
    • always
    • never
  • -v, --verbose β€” produce more logging output [-v ... -vvvvv]. logs are written to stderr, and the increasing number of verbose flags corresponds to the log levels ERROR, WARN, INFO, DEBUG, TRACE 🫢
ngl the -v thing is giving main character energy β€” stack them up to -vvvvv and you get the whole lore.

lowkey reminder before you dip: [TEST] always ignores the [skip] annotation and fails if a test can't be found. no soft launches here πŸ’…

okay bye bestie, go update those tests β€” this page is from the update section of the tytanic manual, version whatever's current at 2026-04-26, iykyk πŸ¦‹βœ¨πŸŽ€

πŸ“¦ where this page comes from