# Unit Test Execution ## Run Backend Unit Tests ```bash dotnet test SlpModularCms.sln --no-build ``` ### Expected Results | Test Project | Tests | Result | |---|---|---| | SlpModularCms.Core.Tests | 45 | Pass | | SlpModularCms.Modules.Identity.Tests | 46 | Pass | | SlpModularCms.Modules.Availability.Tests | 60 | Pass | | SlpModularCms.Modules.Master.Tests | 42 | Pass | | **Total** | **193** | **All Pass** | ## Run Frontend Unit Tests ```bash cd frontend npm run test -- --run ``` ### Expected Results - **Test Files**: 34 passed (34) - **Tests**: 209 passed (209) - `Not implemented: Window's scrollTo()` messages are jsdom environment noise, not failures ## Fix Failing Tests If tests fail: 1. Review console output for the failing test name and assertion 2. For backend: check the relevant module's test project under `src/` 3. For frontend: check `frontend/src/**/*.test.ts(x)` 4. Rerun the specific test project/file until green