Skip to content

Web shared: copy-to-clipboard hook #317

Description

@0xMegie

Area: apps/web/src/shared/hooks/useCopyToClipboard.ts

Goal: Verify deterministic clipboard behavior shared across features.

Tasks:

  • Stub navigator.clipboard write.
  • Assert copied state toggles and resets after timeout.
  • Test rejection path.

Acceptance:

  • Clipboard and timers are reset after each test.
  • bun run --cwd apps/web test passes.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions