Skip to content

test(ChatPrompt): avoid using fake timers before suspended#254

Merged
IgorShevchik merged 1 commit into
mainfrom
sync/nuxt-d0581cf
Jul 10, 2026
Merged

test(ChatPrompt): avoid using fake timers before suspended#254
IgorShevchik merged 1 commit into
mainfrom
sync/nuxt-d0581cf

Conversation

@IgorShevchik

Copy link
Copy Markdown
Collaborator

Upstream

d0581cftest(ChatPrompt): avoid using fake timers before suspended (#6688)

Change — direct 1:1 (test-only)

In ChatPrompt.spec.ts's re-enables submit after compositionend cooldown case, move vi.useFakeTimers() from before mountSuspended() to after it, so the fake timers don't interfere with the async suspension lifecycle. b24ui matched upstream.

Tests

ChatPrompt suite green (62). Full suite unchanged (5289 passed / 6 skipped). No snapshot churn.

Verify (CI=true)

dev:prepare · lint · test — green (no src change).

Ledger

🤖 Generated with Claude Code


Generated by Claude Code

Port of upstream nuxt/ui d0581cf (#6688).

Move `vi.useFakeTimers()` to after `mountSuspended()` in the compositionend
cooldown test so the fake timers don't interfere with the async suspension
lifecycle. Test-only.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JS8ypVfQSFzYVZzkTHhURb
@IgorShevchik IgorShevchik merged commit eb0990c into main Jul 10, 2026
1 check passed
@IgorShevchik IgorShevchik deleted the sync/nuxt-d0581cf branch July 10, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants