tests/testthat/_snaps/describe.md

snapshot tests in describe

Code
  1 + 1
Output
  [1] 2

snapshot tests in describe / and in it

Code
  2 + 2
Output
  [1] 4

has to have a valid description for the block

Code
  describe()
Condition
  Error in `describe()`:
  ! `description` must be a single string, not absent.
Code
  describe(c("a", "b"))
Condition
  Error in `describe()`:
  ! `description` must be a single string, not a character vector.
Code
  it()
Condition
  Error in `it()`:
  ! `description` must be a single string, not absent.
Code
  it(c("a", "b"))
Condition
  Error in `it()`:
  ! `description` must be a single string, not a character vector.


Try the testthat package in your browser

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

testthat documentation built on Nov. 25, 2025, 5:09 p.m.