Skip to content

test(node): skip the Prisma 8 suite on Node 20 - #25421

Merged
isaacs merged 1 commit into
developfrom
isaacs/fix-vitest-node-20.19-prisma-8-test
Oct 15, 2026
Merged

isaacs merged 1 commit into
developfrom
isaacs/fix-vitest-node-20.19-prisma-8-test

Conversation

@isaacs

@isaacs isaacs commented Oct 15, 2026

Copy link
Copy Markdown
Member

Prisma 8 requires Node 22.12: its @prisma/cli-engine peer declares engines.node >=22.12.0. On Node 20, the suite's install of @prisma/orm-postgres now fails outright. npm 10, which Node 20 ships, crashes with Cannot read properties of null (reading 'edgesOut') on a peer conflict deep in Prisma's tree, which vitest@4.1.12 introduced: its optional @vitest/browser-webdriverio peer is ^4.1.11, and that package has no 4.1.12, so it resolves to 4.1.11, which peers on vitest@4.1.11.

The suite now runs on Node 22 and later only. That also removes its Node 20 test of require(esm) loading the ORM uninstrumented, which covered a setup Prisma does not support.

Prisma 8 requires Node 22.12: its `@prisma/cli-engine` peer declares
`engines.node >=22.12.0`. On Node 20, the suite's install of
`@prisma/orm-postgres` now fails outright. npm 10, which Node 20 ships,
crashes with `Cannot read properties of null (reading 'edgesOut')` on a
peer conflict deep in Prisma's tree, which `vitest@4.1.12` introduced:
its optional `@vitest/browser-webdriverio` peer is `^4.1.11`, and that
package has no 4.1.12, so it resolves to 4.1.11, which peers on
`vitest@4.1.11`.

The suite now runs on Node 22 and later only. That also removes its
Node 20 test of `require(esm)` loading the ORM uninstrumented, which
covered a setup Prisma does not support.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@isaacs
isaacs requested a review from a team as a code owner October 15, 2026 16:23
@isaacs
isaacs requested review from JPeer264 and mydea and removed request for a team October 15, 2026 16:23
@isaacs
isaacs merged commit a33b09f into develop Oct 15, 2026
62 checks passed
@isaacs
isaacs deleted the isaacs/fix-vitest-node-20.19-prisma-8-test branch October 15, 2026 16:42
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