From 5227f7ff453a41d18d4e0058b783bb3961ce0652 Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Mon, 6 Apr 2020 15:16:58 +0300 Subject: [PATCH] Update AngularModuleSourceCodeAdder.cs --- .../AngularModuleSourceCodeAdder.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/AngularModuleSourceCodeAdder.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/AngularModuleSourceCodeAdder.cs index 2d1e237933..d8f8404c46 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/AngularModuleSourceCodeAdder.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/AngularModuleSourceCodeAdder.cs @@ -127,11 +127,17 @@ namespace Volo.Abp.Cli.ProjectModification { var jestConfigPath = Path.Combine(angularProjectsPath, project, "jest.config.js"); - File.Delete(jestConfigPath); + if (File.Exists(jestConfigPath)) + { + File.Delete(jestConfigPath); + } var testPath = Path.Combine(angularProjectsPath, project, "src", "test.ts"); - File.Delete(testPath); + if (File.Exists(testPath)) + { + File.Delete(testPath); + } } }