Commit Graph
2 Commits
Author SHA1 Message Date
google-labs-jules[bot]andPR0M3TH3AN 1cd03f3d90 test(cmd-backup): fix unused variable in test
- Remove unused `manifest` variable from destructuring in `test/cmd-backup.test.mjs` to resolve ESLint error.
- Verified fix with `npm run lint`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 18:38:54 +00:00
google-labs-jules[bot]andPR0M3TH3AN 7e08a432cc test(cmd-backup): add integration tests for backup functionality
- Refactor `cmdBackup` and `listBackups` in `src/cmd-backup.mjs` to accept `cwd` parameter for dependency injection.
- Add `test/cmd-backup.test.mjs` to test backup creation, missing files handling, output override, and listing functionality.
- Ensure tests run in isolated temporary directories using `fs.mkdtemp`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-21 18:34:32 +00:00