Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 59f9ba8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
1b868ac to
15d13c7
Compare
Add getDatabaseFromUri(uri) to derive the database name from the Mongo URI (falls back to 'test'). Use that DB for test fixtures instead of generating a per-test DB name. Change cleanup logic to clear all non-system collections (deleteMany) rather than dropping the database, preserving the shared DB while removing test data.
…tive driver Simplify mdb fixture API to use native MongoDB driver directly instead of custom wrapper methods. Removes polling-based expect(), clearCollection(), and clearAllCollections(). Users now use mdb.collection() with native MongoDB operations for assertions. Closes #58 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
SamTolmay
approved these changes
Mar 6, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Add
@lowdefy/community-plugin-e2e-mdbpackage that provides Playwright fixtures for MongoDB e2e testing usingmongodb-memory-serverand YAML snap files.Features
!datetag supportmdb.collection(name)andmdb.dbmdb.seed()Files added
plugins/community-plugin-e2e-mdb/package.jsonplugins/community-plugin-e2e-mdb/src/index.jsplugins/community-plugin-e2e-mdb/src/fixtures/index.jsplugins/community-plugin-e2e-mdb/src/mdb/createMdbHelper.jsplugins/community-plugin-e2e-mdb/src/mdb/snap.jsplugins/community-plugin-e2e-mdb/src/mdb/seed.jsplugins/community-plugin-e2e-mdb/src/setup/globalSetup.jsplugins/community-plugin-e2e-mdb/src/setup/globalTeardown.jsplugins/community-plugin-e2e-mdb/src/utils/yaml.jsplugins/community-plugin-e2e-mdb/src/utils/paths.jsplugins/community-plugin-e2e-mdb/README.mdTest plan
pnpm installcompleted successfullypnpm buildcompiled all 9 source filesCloses #56
Closes #58