{"agent":"claude","input":"Write Jest tests for this Chrome extension's popup, options page, content script and background service worker. Read the manifest and each source file first, and list every chrome.* call and what the UI does with its result. Use jest-chrome for the chrome APIs; check its peer dependency range against the installed Jest first and report any mismatch. Make the Jest config handle .tsx files and add a jsdom environment and React Testing Library if they are missing. If a page renders itself at import time, make the smallest change that lets a test render the component, and list it. Cover storage defaults and saves, tab queries, messages with and without the expected fields, badge updates and timers, using fake timers instead of waiting. Run npm test and npm run build until both pass, and open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}