fix(policy): refactor policy dialog to remove process.exit and fix integration tests

- Refactored `PolicyUpdateDialog` to remove side effects (`process.exit`, `relaunchApp`) and delegate logic to parent.
- Updated `AppContainer` to handle relaunch logic.
- Added comprehensive unit tests for `PolicyUpdateDialog`.
- Fixed `project-policy-cli.test.ts` to correctly mock `PolicyIntegrityManager`.
- Fixed typo in `packages/core/src/policy/config.ts`.
This commit is contained in:
Abhijit Balaji
2026-02-13 16:11:42 -08:00
parent c73e47bbbe
commit 73b3cb86eb
5 changed files with 136 additions and 40 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ export function getPolicyDirectories(
// Admin tier (highest priority)
dirs.push(Storage.getSystemPoliciesDir());
// User tier (second higheset priority)
// User tier (second highest priority)
if (policyPaths && policyPaths.length > 0) {
dirs.push(...policyPaths);
} else {