test_that("cli_status", {
  withr::local_options(cli.ansi = FALSE)
  expect_snapshot({
    pid <- cli_status("This is a status message")
    cli::cli_status_clear(pid, result = "clear")
  })
  expect_snapshot({
    pid <- cli_status("This is a status message")
    cli::cli_status_clear(pid, result = "failed")
  })
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.