tests/testthat/test-build.R

source("../fns.R")

skip_on_cran()

test_that("use sass", {
  wd <- getwd()
  pkg <- create_tmp_package()
  setwd(pkg)
  on.exit({
    setwd(wd)
    delete_tmp_package(pkg)
  })

  scaffold()
  expect_message(build())
  packer::scaffold_leprechaun(edit = FALSE)
  use_packer()
  use_js_utils()
  use_sass()
  use_packer()

  expect_message(build())
})

Try the leprechaun package in your browser

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

leprechaun documentation built on Jan. 19, 2022, 5:08 p.m.