🧪 Add test coverage for TextHalo.ts - #125
Conversation
Adds a comprehensive test suite for `src/TextHalo.ts`, covering its text halo color strategies for table grids and charts. - Updated `load-plugin-modules.mjs` with `loadTextHaloModule`. - Created `text-halo.test.mjs`. - Tests alpha compositing color parsing, named colors, transparency. - Tests area-based color inheritance for charts. - Tests structure-based loop inheritance for tables.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Adds a comprehensive test suite for `src/TextHalo.ts`, covering its text halo color strategies for table grids and charts. - Updated `load-plugin-modules.mjs` with `loadTextHaloModule`. - Created `text-halo.test.mjs`. - Tests alpha compositing color parsing, named colors, transparency. - Tests area-based color inheritance for charts. - Tests structure-based loop inheritance for tables.
🎯 What: The testing gap addressed: Missing test file for
src/TextHalo.ts📊 Coverage: What scenarios are now tested: Color alpha compositing mathematical edge cases, parsing (hex, rgb, rgba, named, none), table structural looping to apply halos, and chart largest-area rectangle color inheritance.
✨ Result: The improvement in test coverage: A full node:test suite running locally ensuring the module is covered and no regressions slip in for background text halos.
PR created automatically by Jules for task 3740874818002740951 started by @MarsLuay