payload icon indicating copy to clipboard operation
payload copied to clipboard

Unclear on how to do integration tests

Open rburgst opened this issue 1 year ago • 2 comments

Link to reproduction

No response

Payload Version

3.0.0-beta.90

Node Version

20

Next.js Version

Next.js 15.0.0-canary.104

Describe the Bug

Currently it is not clear how to do integration tests with 3.0. The testing sample in the repo still seems to be v2 related. The goal would be to init payload and next to be able to test api routes / server actions, etc.

Reproduction Steps

Updating the testing sample would definitely help, however, this is bootstrapping a whole server (currently via express). It would be nice to be able to setup test data using the payload apis.

Adapters and Plugins

No response

rburgst avatar Aug 24 '24 07:08 rburgst

This issue has been marked as stale due to lack of activity.

To keep this issue open, please indicate that it is still relevant in a comment below.

github-actions[bot] avatar Dec 13 '24 05:12 github-actions[bot]

this is definitely not stale

rburgst avatar Dec 16 '24 05:12 rburgst

Hi @rburgst, I think this has improved since you posted the issue. There is a section in contributing.md indicating the structure of our tests. afaik, most of what we have now is v3. Is there anything missing?

GermanJablo avatar Feb 25 '25 15:02 GermanJablo

I'm going to mark this as resolved. But if there are any questions or anything you think is missing, let us know!

GermanJablo avatar Mar 10 '25 20:03 GermanJablo

This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.

github-actions[bot] avatar Mar 18 '25 05:03 github-actions[bot]