chore: adds example code and README for setting up testing with a payload project#3333
Conversation
| '<rootDir>/src/**/*.spec.ts', | ||
| '<rootDir>/test/**/*int.spec.ts', |
There was a problem hiding this comment.
Is anyone opposed to this change? It behaves the same as before, I just wanted to ask as I cannot see why we would need wildcards before the src and test entry points.
|
@JarrodMFlesch is this PR still valid? I see the testing example did make its way into main. Do we need to close this one out? |
|
@jacobsfletch I am going to merge this one into the 1.x branch. I see I need to adjust the testing example on 2.0 as well now too. |
|
Hey @JarrodMFlesch is the current example on 2.0? Just trying to figure out how to pass a different db url for testing but am getting the type error: Thanks! |
|
@jackadair no it is not, good call! I can get this updated today though |
|
@JarrodMFlesch That would be amazing, thank you 🙏 |
|
@JarrodMFlesch Hey sorry to bother but any update on this? |
|
Hey @jackadair, thanks for pinging me. Just updated it! Check out this PR to see what needs to be changed when working with Payload 2.x #4431 |
Description
This adds a new
testingfolder inside the examples directory. The purpose is to show users how to get up and running with testing within their own payload projects.Type of change