Skip to content

Commit

Permalink
When bumping testthat edition, also set minimum version in DESCRIPTION (
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley authored Nov 18, 2020
1 parent f0f3f91 commit 458def7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/test.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ use_testthat_impl <- function(edition = NULL, parallel = FALSE) {
}

if (is_package()) {
use_dependency("testthat", "Suggests")

edition <- check_edition(edition)

use_dependency("testthat", "Suggests", paste0(edition, ".0.0"))
use_description_field("Config/testthat/edition", edition, overwrite = TRUE)

if (parallel) {
Expand Down

0 comments on commit 458def7

Please sign in to comment.