Skip to content

Commit

Permalink
Provide environment to cli helper
Browse files Browse the repository at this point in the history
  • Loading branch information
ateucher committed Feb 13, 2025
1 parent d0e5882 commit 40f56a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/helper.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ set_env_vars <- function(org = c("nasa", "nmfs"), env = parent.frame()) {
TRUE
}

skip_cli <- function(x, ...) {
testthat::skip(cli::cli_fmt(cli::cli_text(x, ...)))
skip_cli <- function(x, ..., env = parent.frame()) {
testthat::skip(cli::cli_fmt(cli::cli_text(x, ..., .envir = env)))
}

0 comments on commit 40f56a0

Please sign in to comment.