Skip to content

[Bug]: CI check job failing on all PRs — TS2742 in slash.test-harness.ts #17315

@miloudbelarebia

Description

@miloudbelarebia

Description

The CI check job (pnpm checkpnpm tsgo) is currently failing on all pull requests with a TypeScript error unrelated to any PR changes:

Error: src/slack/monitor/slash.test-harness.ts(31,17): error TS2742:
The inferred type of 'getSlackSlashMocks' cannot be named without a
reference to '.pnpm/@[email protected]/node_modules/@vitest/spy'.
This is likely not portable. A type annotation is necessary.

Impact

  • Blocks CI for every open PR regardless of the files changed
  • The error is in src/slack/monitor/slash.test-harness.ts, not in any PR-specific code
  • Downstream jobs (build-artifacts, checks, macos, android, etc.) are all skipped

Reproduction

Open any recent PR and check the CI check job — it fails at the "Check types and lint and oxfmt" step.

Example failing runs:

Suggested Fix

Add an explicit type annotation to getSlackSlashMocks in src/slack/monitor/slash.test-harness.ts (line 31) so TypeScript doesn't need to infer a type that references a non-portable .pnpm path.

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