
google-labs-jules[bot]andPR0M3TH3AN
a31332457d
test: add unit tests for roster loading logic
- Implemented dependency injection in `src/roster.mjs` to allow mocking `fs` and `loadTorchConfig`.
- Added `test/roster.test.mjs` with comprehensive test cases:
- Fallback behavior when no files/config exist.
- Priority of `torch/roster.json` (User Roster) over `roster.json` (CWD).
- Internal module roster fallback.
- Environment variable overrides.
- Configuration overrides.
- Error handling for malformed JSON or missing fields.
- Exported `_resetRosterCache`, `_setRosterDependencies`, and `_restoreRosterDependencies` for testing purposes.
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-18 03:31:12 +00:00
..
2026-02-14 20:10:26 -05:00
2026-02-17 03:53:55 +00:00
2026-02-15 15:49:29 +00:00
2026-02-17 18:53:55 +00:00
2026-02-17 17:24:33 +00:00
2026-02-17 17:36:56 +00:00
2026-02-17 19:02:46 +00:00
2026-02-15 15:31:28 +00:00
2026-02-14 20:06:30 -05:00
2026-02-14 19:47:32 -05:00
2026-02-14 19:30:00 -05:00
2026-02-17 18:53:34 +00:00
2026-02-17 17:32:45 +00:00
2026-02-14 14:44:07 -05:00
2026-02-15 23:18:13 +00:00
2026-02-14 15:23:51 -05:00
2026-02-17 18:52:30 +00:00
2026-02-17 18:54:04 +00:00
2026-02-17 18:53:00 +00:00
2026-02-14 14:55:07 -05:00
2026-02-17 18:33:44 +00:00
2026-02-14 15:02:49 -05:00
2026-02-14 15:23:51 -05:00
2026-02-17 18:55:55 +00:00
2026-02-14 15:23:51 -05:00
2026-02-14 14:37:28 -05:00
2026-02-17 18:53:07 +00:00
2026-02-14 14:51:50 -05:00
2026-02-17 17:31:52 +00:00
2026-02-14 06:41:49 +00:00
2026-02-17 17:09:39 +00:00
2026-02-14 19:51:56 -05:00
2026-02-17 18:55:11 +00:00
2026-02-14 19:35:56 -05:00
2026-02-17 18:33:39 +00:00
2026-02-18 03:31:12 +00:00
2026-02-17 22:41:37 +00:00
2026-02-14 17:38:20 -05:00
2026-02-17 22:41:37 +00:00
2026-02-17 22:41:37 +00:00
2026-02-17 22:41:37 +00:00
2026-02-17 18:54:42 +00:00
2026-02-14 18:42:52 -05:00
2026-02-17 19:02:46 +00:00
2026-02-17 19:02:46 +00:00
2026-02-14 18:29:20 +00:00
2026-02-14 18:05:54 -05:00