Conversation
This PR migrates internals tests to vitest <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Migrated test suite from Jest to Vitest and updated test harnesses and timeouts. * Added a Vitest snapshot serializer to normalize and stabilize test outputs for reliable snapshots. * **Chores** * Removed Jest config and related dev dependencies; deleted project Prettier config. * Updated numerous test imports and utilities to align with Vitest (including node: core imports). <!-- end of auto-generated comment: release notes by coderabbit.ai -->
## Summary - bump `@prisma/studio-core` in CLI from `0.13.1` to `0.15.0` - remove legacy Accelerate (`prisma+postgres`) URL transformation logic from `prisma studio` - fail early for Accelerate URLs (`prisma://` and `prisma+postgres://`) with a clear user-facing error - return Studio validation errors through `help()` so they render without stack traces ## Validation - `node build/index.js studio --browser none --port 5557 --url "postgresql://...@db.prisma.io:5432/postgres"` starts successfully - `node build/index.js studio --browser none --url "prisma+postgres://..."` exits with clean unsupported-Accelerate messaging <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Standardized user-facing errors for unsupported/invalid connection URLs (including accelerate-like protocols) and clearer messaging. * Improved MySQL URL compatibility: normalizes sslaccept to mysql2 ssl options, maps connection_limit to connectionLimit, and strips Prisma-specific MySQL query params. * CLI now prints concise messages for user-facing errors and help. * **Tests** * Added tests for MySQL URL normalization (sslaccept and connection_limit). * **Chores** * Dependency updated: @prisma/studio-core bumped to 0.16.3. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )