Skip to content

Commit

Permalink
Skip a test if debugme will be loaded in the reprex
Browse files Browse the repository at this point in the history
  • Loading branch information
jennybc committed Feb 25, 2021
1 parent 5fd5377 commit 324624f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/testthat/test-env.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ test_that("reprex doesn't write into environment of caller", {

test_that("I understand exactly what I'm putting in reprex env", {
skip_on_cran()
# https://github.com/r-lib/debugme/issues/50
skip_if(
requireNamespace("debugme", quietly = TRUE),
"styler --> tibble --> pillar --> debugme --> .Random.seed thing"
)

ret <- reprex(input = c("a <- 'a'", "ls(all.names = TRUE)"))
ret <- ret[grepl("^#>", ret)]
expect_identical(ret, "#> [1] \"a\"")
Expand Down

0 comments on commit 324624f

Please sign in to comment.