🧪 [Testing] test: add test file for Promise Timeout Utilities - #60
🧪 [Testing] test: add test file for Promise Timeout Utilities#60MarsLuay wants to merge 2 commits into
Conversation
Added `source/services/network/promise-timeout.test.cjs` test file to cover both `withPromiseTimeout` and `withTimeout` handling including `TimeoutError`. Added `TimeoutError` and `withTimeout` to `promise-timeout.ts` as specified. Included the test file in `test:fetch-contract` script in package.json.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
👋 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 missing tests for `withPromiseTimeout` and `withTimeout` to `source/services/network/promise-timeout.test.cjs` and adds `TimeoutError` and `withTimeout` to `promise-timeout.ts` missing from initial commit. Tests are included in the `test:fetch-contract` test runner suite to prevent regressions.
🎯 What: Missing Test File for Promise Timeout Utilities and completion of the utilities implementation.
📊 Coverage: Tests
withTimeoutresolving before timeout, rejecting before timeout, and rejecting viaTimeoutErroraccurately matching the timeout delay logic alongside properties validation ofTimeoutError. TestswithPromiseTimeoutin similar states.✨ Result: Improved confidence via
node:testexecution undertest:fetch-contractrunner, reaching full coverage ofpromise-timeout.ts.PR created automatically by Jules for task 7864076724233178940 started by @MarsLuay