Skip to content

docs: add transactional integration test guidance#7922

Draft
AmanVarshney01 wants to merge 1 commit into
mainfrom
aman/add-transactional-test-guidance
Draft

docs: add transactional integration test guidance#7922
AmanVarshney01 wants to merge 1 commit into
mainfrom
aman/add-transactional-test-guidance

Conversation

@AmanVarshney01
Copy link
Copy Markdown
Member

Summary

  • add integration-testing guidance for per-test rollback with Prisma interactive transactions
  • show how to pass a transaction client into code under test
  • document when savepoint-style nested transaction behavior needs a community helper or a different app structure
  • mirror the guidance in current and v6 integration testing docs

Root cause

The testing docs covered database cleanup between suites, but did not explain how to run real database tests with per-test transaction isolation or what to do when code needs savepoint-style nested transaction behavior.

Validation

  • pnpm exec cspell content/docs/orm/prisma-client/testing/integration-testing.mdx content/docs/orm/v6/prisma-client/testing/integration-testing.mdx cspell.json --show-context
  • git diff --check

Fixes #6604

@vercel
Copy link
Copy Markdown

vercel Bot commented May 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview, Comment May 26, 2026 1:31pm
docs Ready Ready Preview, Comment May 26, 2026 1:31pm
eclipse Ready Ready Preview, Comment May 26, 2026 1:31pm
site Ready Ready Preview, Comment May 26, 2026 1:31pm

Request Review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 26, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: f9b77988-d8f5-459b-a238-29b600d6ed44

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown
Contributor

🍈 Lychee Link Check Report

23 links: ✅ 10 OK | 🚫 0 errors | 🔀 0 redirects | 👻 13 excluded

✅ All links are working!


Full Statistics Table
Status Count
✅ Successful 10
🔀 Redirected 0
👻 Excluded 13
🚫 Errors 0
⛔ Unsupported 0
⏳ Timeouts 0
❓ Unknown 0

@argos-ci
Copy link
Copy Markdown

argos-ci Bot commented May 26, 2026

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected - May 26, 2026, 1:38 PM

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.

Document how to perform Live DB test support with savepoints

1 participant