Skip to content
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

Testing Example Not Updated for v3, Only Shows MongoDB Test Approach #10368

Open
stevekuznetsov opened this issue Jan 6, 2025 · 0 comments
Open
Labels
documentation Improvements or additions to documentation

Comments

@stevekuznetsov
Copy link

While trying to follow the examples/testing approach to test a new v3 project, I quickly found many errors cropping up on the payload.init() call and checked - the example seems to be for PayloadCMS 2.0 only, not 3.0. Also, I could not figure out for the life of me what started the in-memory MongoDB server, there are no explicit calls to the library I could find or any passing of the connection parameters to the PayloadCMS instance. In any case, it would be great to upgrade this example to 3.0 and show setup for any of the other drivers. I couldn't find anything obvious in the core tests, I found helpers to start the in-memory MongoDB server but nothing for other databases.

@stevekuznetsov stevekuznetsov added the documentation Improvements or additions to documentation label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant