From f045309f1afcd63902f52bc712cd72233c5385be Mon Sep 17 00:00:00 2001 From: Pascal Grimaud Date: Thu, 17 Oct 2024 18:33:42 +0200 Subject: [PATCH] Fix vitest config after prettier format to allow applying other front module --- .../resources/generator/typescript/vitest.config.ts.mustache | 1 + ...Test.shouldBuildModuleWithStyle.vitest.config.ts.approved.txt | 1 + ...ctoryTest.shouldCreateVueModule.vitest.config.ts.approved.txt | 1 + 3 files changed, 3 insertions(+) diff --git a/src/main/resources/generator/typescript/vitest.config.ts.mustache b/src/main/resources/generator/typescript/vitest.config.ts.mustache index 30452b097a..4b6820a5bf 100644 --- a/src/main/resources/generator/typescript/vitest.config.ts.mustache +++ b/src/main/resources/generator/typescript/vitest.config.ts.mustache @@ -29,6 +29,7 @@ export default defineConfig({ }, include: ['src/main/webapp/**/*.ts?(x)'], exclude: [ + // keep this comment to be able to apply other front module after prettier format ...configDefaults.coverage.exclude as string[], ], provider: 'istanbul', diff --git a/src/test/resources/tech/jhipster/lite/generator/client/react/core/domain/ReactCoreModulesFactoryTest.shouldBuildModuleWithStyle.vitest.config.ts.approved.txt b/src/test/resources/tech/jhipster/lite/generator/client/react/core/domain/ReactCoreModulesFactoryTest.shouldBuildModuleWithStyle.vitest.config.ts.approved.txt index c155fa1313..fd5d83800c 100644 --- a/src/test/resources/tech/jhipster/lite/generator/client/react/core/domain/ReactCoreModulesFactoryTest.shouldBuildModuleWithStyle.vitest.config.ts.approved.txt +++ b/src/test/resources/tech/jhipster/lite/generator/client/react/core/domain/ReactCoreModulesFactoryTest.shouldBuildModuleWithStyle.vitest.config.ts.approved.txt @@ -30,6 +30,7 @@ export default defineConfig({ }, include: ['src/main/webapp/**/*.ts?(x)'], exclude: [ + // keep this comment to be able to apply other front module after prettier format ...configDefaults.coverage.exclude as string[], 'src/main/webapp/app/injections.ts', 'src/main/webapp/app/index.tsx', diff --git a/src/test/resources/tech/jhipster/lite/generator/client/vue/core/domain/VueModulesFactoryTest.shouldCreateVueModule.vitest.config.ts.approved.txt b/src/test/resources/tech/jhipster/lite/generator/client/vue/core/domain/VueModulesFactoryTest.shouldCreateVueModule.vitest.config.ts.approved.txt index 6307b1faa2..c31c746616 100644 --- a/src/test/resources/tech/jhipster/lite/generator/client/vue/core/domain/VueModulesFactoryTest.shouldCreateVueModule.vitest.config.ts.approved.txt +++ b/src/test/resources/tech/jhipster/lite/generator/client/vue/core/domain/VueModulesFactoryTest.shouldCreateVueModule.vitest.config.ts.approved.txt @@ -30,6 +30,7 @@ export default defineConfig({ }, include: ['src/main/webapp/**/*.ts?(x)'], exclude: [ + // keep this comment to be able to apply other front module after prettier format ...configDefaults.coverage.exclude as string[], 'src/main/webapp/app/main.ts', 'src/main/webapp/app/injections.ts',