Skip to content

Commit

Permalink
GeneratorAcceptanceTests: Better clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
davesmith00000 committed Apr 22, 2024
1 parent 7c6bb62 commit c094263
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@ class GeneratorAcceptanceTests extends munit.FunSuite {

val targetDir = os.pwd / "out" / "indigo-plugin-generator-acceptance-test-output"

override def beforeAll(): Unit = {
private def cleanUp(): Unit = {
if (os.exists(targetDir)) {
os.remove.all(target = targetDir)
}

os.makeDir.all(targetDir)
}

override def beforeAll(): Unit = cleanUp()
override def beforeEach(context: BeforeEach): Unit = cleanUp()

test("Can generate an enum from a CSV file") {

val files =
Expand Down

0 comments on commit c094263

Please sign in to comment.