GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id(web): goto-line.test.ts typecheck fails on main — richSchema does not fit helper's narrow rawSchema type, blocks all id PRs · Issue #821 · developing-today/code

id(web): goto-line.test.ts typecheck fails on main — richSchema does not fit helper's narrow rawSchema type, blocks all id PRs #821

New issue
Copy link
New issue
Copy link
Closed
#822
Closed
id(web): goto-line.test.ts typecheck fails on main — richSchema does not fit helper's narrow rawSchema type, blocks all id PRs#821
#822
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/ciCI/CD pipelines, workflows, and build automation

Description

@dezren39
dezren39
opened on Oct 24, 2026
Issue body actions

Problem

main (1161bcf) fails the id workflow: checks test-web and test-web-typecheck fail in pkgs/id/web typecheck.

Verified from PR #820 run 40140357862 (and main run 40136563100, conclusion failure):

src/goto-line.test.ts:354:51 - error TS2345: Argument of type 'Schema<...>' is not assignable to parameter of type 'Schema<"text" | "code_block" | "doc", never>'
src/goto-line.test.ts:394:51 - error TS2345: (same)
Found 2 errors in the same file, starting at: src/goto-line.test.ts:354
error: recipe `test-web-typecheck` failed

All other checks in that run passed, including 1633 unit tests and all 374 web unit tests (13 files). This failure blocks every open id PR (#820, #810, #808, #801, …) with an unrelated red nix flake check.

Root cause

The #745 tests added in #746 (44c0cd3) define a helper in pkgs/id/web/src/goto-line.test.ts:

function createViewFromDoc(
  schema: typeof rawSchema,
  doc: ReturnType<typeof rawSchema.node>,
)

typeof rawSchema is the narrow Schema<"text"|"code_block"|"doc", never> (rawSchema is built from a literal node map). richSchema is a generic Schema (built via addListNodes(...)), so passing richSchema at lines 354 and 394 does not typecheck. Line 372 passes rawSchema and is fine.

Fix

Generalise the helper to the base ProseMirror types: schema: Schema and doc: Node from prosemirror-model (the same unparameterised Schema type editor.ts:getSchema already returns).

Acceptance

  • bun run typecheck (tsc --noEmit) in pkgs/id/web passes with no errors in goto-line.test.ts
  • goto-line web unit tests still pass
  • nix flake check test-web / test-web-typecheck go green on the PR

Activity

  1. github-actions
    assigned
    dezren39
    on Oct 24, 2026
  2. dezren39
    closed this as completedin #822on Oct 25, 2026
  3. developing-today-fleet commented on Nov 24, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 24, 2026 – with developing.today fleet
    Contributor
    More actions

    AUDIT-7 Lane 2 slice 3 — closing evidence. Verified against the issue body and merged implementation PR(s):

    • PR #822 — fix(id-web): generalise goto-line test helper to base Schema/Node types (fixes #821) (merged 2026-10-25)

    The issue had zero comments in the fresh pre-action read; this comment records the missing close evidence.

  4. dezren39
    added
    kind/ciCI/CD pipelines, workflows, and build automation
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/ciCI/CD pipelines, workflows, and build automation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.