You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(amazonq): Fix mock fs clean; Node version upgrade (aws#2324)
* fix: update the node version to 24
* Fix mock-fs Windows compatibility by using relative cache paths
* style: fix code formatting for mock-fs test files
* fix: use fake timers in chat-client tests for Node.js 24 compatibility
Node.js 24 has stricter timer handling that caused setTimeout calls
in production code to hang tests. Using fake timers ensures proper
test isolation and prevents timeouts.
* style: fix prettier formatting for chat-client test
* fix: stub handleChatPrompt in mynahUi test to prevent timeout
* fix: update test assertion to match stubbed behavior
* fix: use proper module reference for handleChatPrompt stub
* fix: make test async and wait for setTimeout calls to complete
* fix: stub setTimeout to execute immediately and increase test timeout
* fix: add setTimeout stubs to all sendGenericCommand tests
---------
Co-authored-by: laileni <[email protected]>
0 commit comments