tests/testthat/test-watch.R

test_that('typr_watch works', {
  skip_if_no_typst()

  p <- typr_watch('../test.typ')

  expect_true(p$is_alive())

  typr_watch_stop()

  expect_false(p$is_alive())
})

Try the typr package in your browser

Any scripts or data that you put into this service are public.

typr documentation built on June 8, 2025, 10:36 a.m.