diff --git a/tests/testthat/test-update.R b/tests/testthat/test-update.R index 9ced000..b87e176 100644 --- a/tests/testthat/test-update.R +++ b/tests/testthat/test-update.R @@ -1,4 +1,5 @@ test_that("deepl_update() works", { + dir <- withr::local_tempdir() file <- file.path(dir, "bla.md") fs::file_create(file) @@ -21,6 +22,8 @@ test_that("deepl_update() works", { }) gert::git_init(dir) + gert::git_config_set("user.name", "Jane Doe", repo = dir) + gert::git_config_set("user.email", "jane@example.com", repo = dir) gert::git_add(c(fs::path_file(file), fs::path_file(out_file)), repo = dir) gert::git_commit_all("First commit", repo = dir)