summarum/src
google-labs-jules[bot] 5172fd99db 🧪 [testing improvement] Add tests for SumEngine extension API and evaluation methods
🎯 What: Tests were added for previously untested parts of `SumEngine`, primarily covering `evaluateExpression`, unknown base unit handling in `addUnit`, numeric values in `setVariable`, and type mappings (dates, percents) in `addFunction`'s arguments.
📊 Coverage:
- `addUnit` error on unknown `baseUnitId`
- `addFunction` handling conversion of `percent` and `date` arguments to `ExtensionValue`
- `setVariable` with plain numbers
- `evaluateExpression` retrieving the exact raw `Value`
✨ Result: Increased unit test line coverage for `src/engine/index.ts` covering previously overlooked functions and type mapping corner cases in the extension API.

Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com>
2026-09-10 08:47:56 +00:00
..
engine 🧪 [testing improvement] Add tests for SumEngine extension API and evaluation methods 2026-09-10 08:47:56 +00:00
ui perf: defer document string split allocation in numeric search (#104) 2026-08-19 16:35:26 +03:00
extensions.test.ts Refactor console logs to use centralized logger 2026-08-14 13:39:07 +03:00
extensions.ts Refactor console logs to use centralized logger 2026-08-14 13:39:07 +03:00
i18n.test.ts add tests for i18n 2026-07-08 14:06:47 +03:00
i18n.ts sheets: reorder by dragging instead of up/down buttons 2026-07-03 12:57:14 +03:00
logger.test.ts test: add unit tests for logger utility (#96) 2026-08-19 16:35:18 +03:00
logger.ts Refactor console logs to use centralized logger 2026-08-14 13:39:07 +03:00
main.test.ts Add test suite for application main entry point (#114) 2026-08-19 16:35:49 +03:00
main.ts ⚡ Unnecessary DOM writes in drag mousemove event (#98) 2026-08-19 16:44:07 +03:00
storage.test.ts Refactor console logs to use centralized logger 2026-08-14 13:39:07 +03:00
storage.ts Refactor console logs to use centralized logger 2026-08-14 13:39:07 +03:00
updater.test.ts Refactor console logs to use centralized logger 2026-08-14 13:39:07 +03:00
updater.ts Refactor console logs to use centralized logger 2026-08-14 13:39:07 +03:00
workspace.test.ts test: add coverage for workspace evaluation error cleanup (#105) 2026-08-19 16:35:29 +03:00
workspace.ts perf(workspace): cache sheet list during invalidate loop (#107) 2026-08-19 16:35:33 +03:00