Skip to content

feat: add createCollection tool #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 16, 2025
Merged

Conversation

nirinchev
Copy link
Collaborator

chore: add integration tests for listCollections

chore: add integration tests for listCollections
@nirinchev nirinchev requested a review from gagik April 16, 2025 08:38
import { ObjectId } from "bson";

describe("createCollection tool", () => {
const client = jestTestMCPClient();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not blocking: this isn't from this PR but naming feels weird in retrospect as jest is an implementation detail. maybe mock or just getTestMCPClient?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, it does also call the before/after hooks, so it kind of depends on jest (or a similar testing framework that has the same hooks with similar signatures). Also, I don't think it'd be accurate to call it a mock client as it's more of an integration setup. Happy to iterate on the naming though if we feel this is not the right one.

@nirinchev nirinchev merged commit 09faec9 into main Apr 16, 2025
4 checks passed
@nirinchev nirinchev deleted the ni/integration-list-collections branch April 16, 2025 09:17
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