diff --git a/src/test/webapp/spec/WrappedElement.ts b/src/test/webapp/unit/WrappedElement.ts similarity index 100% rename from src/test/webapp/spec/WrappedElement.ts rename to src/test/webapp/unit/WrappedElement.ts diff --git a/src/test/webapp/spec/common/domain/AlertBus.fixture.ts b/src/test/webapp/unit/common/domain/AlertBus.fixture.ts similarity index 100% rename from src/test/webapp/spec/common/domain/AlertBus.fixture.ts rename to src/test/webapp/unit/common/domain/AlertBus.fixture.ts diff --git a/src/test/webapp/spec/common/domain/AlertListener.fixure.ts b/src/test/webapp/unit/common/domain/AlertListener.fixure.ts similarity index 100% rename from src/test/webapp/spec/common/domain/AlertListener.fixure.ts rename to src/test/webapp/unit/common/domain/AlertListener.fixure.ts diff --git a/src/test/webapp/spec/common/domain/Logger.fixture.ts b/src/test/webapp/unit/common/domain/Logger.fixture.ts similarity index 100% rename from src/test/webapp/spec/common/domain/Logger.fixture.ts rename to src/test/webapp/unit/common/domain/Logger.fixture.ts diff --git a/src/test/webapp/spec/common/domain/Optional.spec.ts b/src/test/webapp/unit/common/domain/Optional.spec.ts similarity index 100% rename from src/test/webapp/spec/common/domain/Optional.spec.ts rename to src/test/webapp/unit/common/domain/Optional.spec.ts diff --git a/src/test/webapp/spec/common/primary/app/App.spec.ts b/src/test/webapp/unit/common/primary/app/App.spec.ts similarity index 100% rename from src/test/webapp/spec/common/primary/app/App.spec.ts rename to src/test/webapp/unit/common/primary/app/App.spec.ts diff --git a/src/test/webapp/spec/common/primary/cursor/BodyCursorUpdater.spec.ts b/src/test/webapp/unit/common/primary/cursor/BodyCursorUpdater.spec.ts similarity index 100% rename from src/test/webapp/spec/common/primary/cursor/BodyCursorUpdater.spec.ts rename to src/test/webapp/unit/common/primary/cursor/BodyCursorUpdater.spec.ts diff --git a/src/test/webapp/spec/common/primary/header/Header.spec.ts b/src/test/webapp/unit/common/primary/header/Header.spec.ts similarity index 100% rename from src/test/webapp/spec/common/primary/header/Header.spec.ts rename to src/test/webapp/unit/common/primary/header/Header.spec.ts diff --git a/src/test/webapp/spec/common/primary/icon/Icon.spec.ts b/src/test/webapp/unit/common/primary/icon/Icon.spec.ts similarity index 100% rename from src/test/webapp/spec/common/primary/icon/Icon.spec.ts rename to src/test/webapp/unit/common/primary/icon/Icon.spec.ts diff --git a/src/test/webapp/spec/common/primary/theme-button/ThemeButton.spec.ts b/src/test/webapp/unit/common/primary/theme-button/ThemeButton.spec.ts similarity index 100% rename from src/test/webapp/spec/common/primary/theme-button/ThemeButton.spec.ts rename to src/test/webapp/unit/common/primary/theme-button/ThemeButton.spec.ts diff --git a/src/test/webapp/spec/common/primary/timeout/Timeout.fixture.ts b/src/test/webapp/unit/common/primary/timeout/Timeout.fixture.ts similarity index 100% rename from src/test/webapp/spec/common/primary/timeout/Timeout.fixture.ts rename to src/test/webapp/unit/common/primary/timeout/Timeout.fixture.ts diff --git a/src/test/webapp/spec/common/primary/timeout/Timeout.spec.ts b/src/test/webapp/unit/common/primary/timeout/Timeout.spec.ts similarity index 100% rename from src/test/webapp/spec/common/primary/timeout/Timeout.spec.ts rename to src/test/webapp/unit/common/primary/timeout/Timeout.spec.ts diff --git a/src/test/webapp/spec/common/primary/toast/Toast.spec.ts b/src/test/webapp/unit/common/primary/toast/Toast.spec.ts similarity index 100% rename from src/test/webapp/spec/common/primary/toast/Toast.spec.ts rename to src/test/webapp/unit/common/primary/toast/Toast.spec.ts diff --git a/src/test/webapp/spec/common/secondary/ConsoleLogger.spec.ts b/src/test/webapp/unit/common/secondary/ConsoleLogger.spec.ts similarity index 100% rename from src/test/webapp/spec/common/secondary/ConsoleLogger.spec.ts rename to src/test/webapp/unit/common/secondary/ConsoleLogger.spec.ts diff --git a/src/test/webapp/spec/common/secondary/EmitterStub.fixture.ts b/src/test/webapp/unit/common/secondary/EmitterStub.fixture.ts similarity index 100% rename from src/test/webapp/spec/common/secondary/EmitterStub.fixture.ts rename to src/test/webapp/unit/common/secondary/EmitterStub.fixture.ts diff --git a/src/test/webapp/spec/common/secondary/alert/MittAlertBus.spec.ts b/src/test/webapp/unit/common/secondary/alert/MittAlertBus.spec.ts similarity index 100% rename from src/test/webapp/spec/common/secondary/alert/MittAlertBus.spec.ts rename to src/test/webapp/unit/common/secondary/alert/MittAlertBus.spec.ts diff --git a/src/test/webapp/spec/common/secondary/alert/MittAlertListener.spec.ts b/src/test/webapp/unit/common/secondary/alert/MittAlertListener.spec.ts similarity index 100% rename from src/test/webapp/spec/common/secondary/alert/MittAlertListener.spec.ts rename to src/test/webapp/unit/common/secondary/alert/MittAlertListener.spec.ts diff --git a/src/test/webapp/spec/http/AxiosHttp.spec.ts b/src/test/webapp/unit/http/AxiosHttp.spec.ts similarity index 100% rename from src/test/webapp/spec/http/AxiosHttp.spec.ts rename to src/test/webapp/unit/http/AxiosHttp.spec.ts diff --git a/src/test/webapp/spec/http/AxiosHttpStub.ts b/src/test/webapp/unit/http/AxiosHttpStub.ts similarity index 100% rename from src/test/webapp/spec/http/AxiosHttpStub.ts rename to src/test/webapp/unit/http/AxiosHttpStub.ts diff --git a/src/test/webapp/spec/http/AxiosStub.ts b/src/test/webapp/unit/http/AxiosStub.ts similarity index 100% rename from src/test/webapp/spec/http/AxiosStub.ts rename to src/test/webapp/unit/http/AxiosStub.ts diff --git a/src/test/webapp/spec/loader/primary/Loader.spec.ts b/src/test/webapp/unit/loader/primary/Loader.spec.ts similarity index 100% rename from src/test/webapp/spec/loader/primary/Loader.spec.ts rename to src/test/webapp/unit/loader/primary/Loader.spec.ts diff --git a/src/test/webapp/spec/module/domain/ManagementRepository.fixture.ts b/src/test/webapp/unit/module/domain/ManagementRepository.fixture.ts similarity index 100% rename from src/test/webapp/spec/module/domain/ManagementRepository.fixture.ts rename to src/test/webapp/unit/module/domain/ManagementRepository.fixture.ts diff --git a/src/test/webapp/spec/module/domain/ModuleParameters.fixture.ts b/src/test/webapp/unit/module/domain/ModuleParameters.fixture.ts similarity index 100% rename from src/test/webapp/spec/module/domain/ModuleParameters.fixture.ts rename to src/test/webapp/unit/module/domain/ModuleParameters.fixture.ts diff --git a/src/test/webapp/spec/module/domain/Modules.fixture.ts b/src/test/webapp/unit/module/domain/Modules.fixture.ts similarity index 100% rename from src/test/webapp/spec/module/domain/Modules.fixture.ts rename to src/test/webapp/unit/module/domain/Modules.fixture.ts diff --git a/src/test/webapp/spec/module/domain/ProjectFolders.fixture.ts b/src/test/webapp/unit/module/domain/ProjectFolders.fixture.ts similarity index 100% rename from src/test/webapp/spec/module/domain/ProjectFolders.fixture.ts rename to src/test/webapp/unit/module/domain/ProjectFolders.fixture.ts diff --git a/src/test/webapp/spec/module/domain/ThemeRepository.fixture.ts b/src/test/webapp/unit/module/domain/ThemeRepository.fixture.ts similarity index 100% rename from src/test/webapp/spec/module/domain/ThemeRepository.fixture.ts rename to src/test/webapp/unit/module/domain/ThemeRepository.fixture.ts diff --git a/src/test/webapp/spec/module/domain/landscape/Landscape.fixture.ts b/src/test/webapp/unit/module/domain/landscape/Landscape.fixture.ts similarity index 100% rename from src/test/webapp/spec/module/domain/landscape/Landscape.fixture.ts rename to src/test/webapp/unit/module/domain/landscape/Landscape.fixture.ts diff --git a/src/test/webapp/spec/module/domain/landscape/Landscape.spec.ts b/src/test/webapp/unit/module/domain/landscape/Landscape.spec.ts similarity index 100% rename from src/test/webapp/spec/module/domain/landscape/Landscape.spec.ts rename to src/test/webapp/unit/module/domain/landscape/Landscape.spec.ts diff --git a/src/test/webapp/spec/module/domain/landscape/LandscapeSelectionTree.spec.ts b/src/test/webapp/unit/module/domain/landscape/LandscapeSelectionTree.spec.ts similarity index 100% rename from src/test/webapp/spec/module/domain/landscape/LandscapeSelectionTree.spec.ts rename to src/test/webapp/unit/module/domain/landscape/LandscapeSelectionTree.spec.ts diff --git a/src/test/webapp/spec/module/domain/landscape/LandscapeUnselectionTree.spec.ts b/src/test/webapp/unit/module/domain/landscape/LandscapeUnselectionTree.spec.ts similarity index 100% rename from src/test/webapp/spec/module/domain/landscape/LandscapeUnselectionTree.spec.ts rename to src/test/webapp/unit/module/domain/landscape/LandscapeUnselectionTree.spec.ts diff --git a/src/test/webapp/spec/module/primary/GlobalWindow.fixture.ts b/src/test/webapp/unit/module/primary/GlobalWindow.fixture.ts similarity index 100% rename from src/test/webapp/spec/module/primary/GlobalWindow.fixture.ts rename to src/test/webapp/unit/module/primary/GlobalWindow.fixture.ts diff --git a/src/test/webapp/spec/module/primary/landscape/LandscapeComponent.spec.ts b/src/test/webapp/unit/module/primary/landscape/LandscapeComponent.spec.ts similarity index 100% rename from src/test/webapp/spec/module/primary/landscape/LandscapeComponent.spec.ts rename to src/test/webapp/unit/module/primary/landscape/LandscapeComponent.spec.ts diff --git a/src/test/webapp/spec/module/primary/landscape/LandscapeConnector.spec.ts b/src/test/webapp/unit/module/primary/landscape/LandscapeConnector.spec.ts similarity index 100% rename from src/test/webapp/spec/module/primary/landscape/LandscapeConnector.spec.ts rename to src/test/webapp/unit/module/primary/landscape/LandscapeConnector.spec.ts diff --git a/src/test/webapp/spec/module/primary/landscape/LandscapeMiniMapComponent.spec.ts b/src/test/webapp/unit/module/primary/landscape/LandscapeMiniMapComponent.spec.ts similarity index 100% rename from src/test/webapp/spec/module/primary/landscape/LandscapeMiniMapComponent.spec.ts rename to src/test/webapp/unit/module/primary/landscape/LandscapeMiniMapComponent.spec.ts diff --git a/src/test/webapp/spec/module/primary/landscape/LandscapeScroller.spec.ts b/src/test/webapp/unit/module/primary/landscape/LandscapeScroller.spec.ts similarity index 100% rename from src/test/webapp/spec/module/primary/landscape/LandscapeScroller.spec.ts rename to src/test/webapp/unit/module/primary/landscape/LandscapeScroller.spec.ts diff --git a/src/test/webapp/spec/module/primary/modules-patch/ModulesPatchComponent.spec.ts b/src/test/webapp/unit/module/primary/modules-patch/ModulesPatchComponent.spec.ts similarity index 100% rename from src/test/webapp/spec/module/primary/modules-patch/ModulesPatchComponent.spec.ts rename to src/test/webapp/unit/module/primary/modules-patch/ModulesPatchComponent.spec.ts diff --git a/src/test/webapp/spec/module/primary/project-actions/ProjectActionsComponent.spec.ts b/src/test/webapp/unit/module/primary/project-actions/ProjectActionsComponent.spec.ts similarity index 100% rename from src/test/webapp/spec/module/primary/project-actions/ProjectActionsComponent.spec.ts rename to src/test/webapp/unit/module/primary/project-actions/ProjectActionsComponent.spec.ts diff --git a/src/test/webapp/spec/module/secondary/LocalStorageModuleParametersRepository.spec.ts b/src/test/webapp/unit/module/secondary/LocalStorageModuleParametersRepository.spec.ts similarity index 100% rename from src/test/webapp/spec/module/secondary/LocalStorageModuleParametersRepository.spec.ts rename to src/test/webapp/unit/module/secondary/LocalStorageModuleParametersRepository.spec.ts diff --git a/src/test/webapp/spec/module/secondary/LocalWindowThemeRepository.spec.ts b/src/test/webapp/unit/module/secondary/LocalWindowThemeRepository.spec.ts similarity index 100% rename from src/test/webapp/spec/module/secondary/LocalWindowThemeRepository.spec.ts rename to src/test/webapp/unit/module/secondary/LocalWindowThemeRepository.spec.ts diff --git a/src/test/webapp/spec/module/secondary/RestModulesRepository.spec.ts b/src/test/webapp/unit/module/secondary/RestModulesRepository.spec.ts similarity index 100% rename from src/test/webapp/spec/module/secondary/RestModulesRepository.spec.ts rename to src/test/webapp/unit/module/secondary/RestModulesRepository.spec.ts diff --git a/src/test/webapp/spec/module/secondary/RestProjectFoldersRepository.spec.ts b/src/test/webapp/unit/module/secondary/RestProjectFoldersRepository.spec.ts similarity index 100% rename from src/test/webapp/spec/module/secondary/RestProjectFoldersRepository.spec.ts rename to src/test/webapp/unit/module/secondary/RestProjectFoldersRepository.spec.ts diff --git a/tsconfig.build.json b/tsconfig.build.json index bf9ed3f71db..53bb74097e5 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "./tsconfig.json", - "exclude": ["src/test/webapp/spec/**/*.ts"] + "exclude": ["src/test/webapp/unit/**/*.ts"] } diff --git a/tsconfig.json b/tsconfig.json index f4dfad83a23..226911d45de 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -21,7 +21,7 @@ "src/main/webapp/**/*.d.ts", "src/main/webapp/**/*.tsx", "src/main/webapp/**/*.vue", - "src/test/webapp/spec/**/*.ts" + "src/test/webapp/unit/**/*.ts" ], "exclude": ["./node_modules", "src/test/webapp/cypress/**/*.ts"] } diff --git a/vitest.config.ts b/vitest.config.ts index 3eb967940e9..688c68e0b18 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -18,7 +18,7 @@ export default defineConfig({ }), ], test: { - include: ['src/test/webapp/spec/**/*.spec.ts'], + include: ['src/test/webapp/unit/**/*.spec.ts'], logHeapUsage: true, poolOptions: { threads: {