diff --git a/DiscordChatExporter.Cli.Tests/Infra/ExportWrapper.cs b/DiscordChatExporter.Cli.Tests/Infra/ExportWrapper.cs index e35df18..d43d455 100644 --- a/DiscordChatExporter.Cli.Tests/Infra/ExportWrapper.cs +++ b/DiscordChatExporter.Cli.Tests/Infra/ExportWrapper.cs @@ -25,7 +25,14 @@ public static class ExportWrapper static ExportWrapper() { - Directory.Delete(DirPath, true); + try + { + Directory.Delete(DirPath, true); + } + catch (DirectoryNotFoundException) + { + } + Directory.CreateDirectory(DirPath); }