Skip to content

Lint backlog: floating promises in packages/client tests (53) #4301

Closed

Description

@DoodleBears

Found by the floating-promise guardrail (#4297, PR #4299). These are un-awaited promises in tests: an assertion inside a promise nobody awaits can pass without ever running, so each one may be hiding a false pass.

File Findings
packages/client/test/channel-sidebar-order.test.ts 24
packages/client/test/channel-dock.test.tsx 11
packages/client/test/channel-sidebar-preview.test.ts 4
packages/client/test/channel-sidebar-visibility.test.ts 3
packages/client/test/message-delivery.test.tsx 3
packages/client/test/bot-mode-sidebar.test.ts 2
packages/client/test/shortcut-help.test.tsx 2
appearance-nested, channel-workspace, composer-draft-recovery, genui-document-runtime-loader 1 each

Done when

  • Each finding is awaited, or deliberately voided where fire-and-forget is the behaviour under test. If an awaited assertion now fails, fix the test or the code; never weaken the assertion.
  • pnpm lint:baseline removes these entries from scripts/lint-baseline.json, and pnpm lint passes.
  • Find the findings with node scripts/lint-ratchet.mjs packages/client/test/<file> after temporarily deleting the file's baseline entry.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions