🧪 Add missing test for processDocxEmbeds in DocxEmbedLoader - #132
🧪 Add missing test for processDocxEmbeds in DocxEmbedLoader#132MarsLuay wants to merge 2 commits into
Conversation
Added a test case for the `processDocxEmbeds` function to verify that `DocxEmbedScanChild` is correctly instantiated and added to the Markdown post-processor context. Mocked `ownerDocument.defaultView` for the `CoalescedTimeout` scheduling logic in the child component.
|
👋 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. |
Added a test case for the `processDocxEmbeds` function to verify that `DocxEmbedScanChild` is correctly instantiated and added to the Markdown post-processor context. Mocked `ownerDocument.defaultView` for the `CoalescedTimeout` scheduling logic in the child component. Also fixed a pre-existing `provenance.json` failure in CI.
🎯 What: The testing gap for
processDocxEmbedsinsrc/DocxEmbedLoader.tshas been addressed.📊 Coverage: The test ensures that the
processDocxEmbedsfunction properly callsctx.addChild()to register theDocxEmbedScanChildcomponent.✨ Result: Increased unit test coverage and confidence in the Markdown post-processing embed flow.
(Note: During execution, an environment-specific missing DOCX runtime workspace issue caused several other
npm testfailures unrelated to this change, but the updated module test passes entirely on its own).PR created automatically by Jules for task 5373107965823121422 started by @MarsLuay