-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Rework the Unit testing page for Strapi 5 #2712
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
💡 Enable Vercel Agent with $100 free credit for automated AI reviews |
|
Hey, it's great you're updating the testing page. This section: https://documentation-git-cms-testing-reworked-strapijs.vercel.app/cms/testing#set-up-a-testing-environment When I have two different files for the database config, only one of them ends up in Basically if I run Hopefuly this helps somehow. |
|
Is there a way to bootstrap the sqlite db based on a template? My API tests expect some data already configured. |
|
Hi @ancashoria, thanks for your interest and kind words regarding this PR :) To be honest, I only have basic experience with testing, but as a technical writer for Strapi, I’m doing my best, with the help of AI-based tools, to update this page. I’m afraid your feedback points to issues that are a bit beyond my current skill set, but I’ll try to get help from Strapi engineers to improve the PR (it still needs their review, anyway 👀). I’ll keep you posted! |
d687b90 to
27a8afc
Compare
|
@ancashoria I haven't had any replies from the Strapi devs yet, but did my best to update things (both the present PR and the accompanying https://github.com/pwizla/strapi-unit-testing-examples repo with the help of AIs. Here's what I did:
Usage: Run Both solutions are now documented and working in the updated testing guide. The test suite runs cleanly without the previous SQLite "aborted" errors. I hope this helps! |
This PR merges content from 2 blog posts published on Unit testing and tries to update them for Strapi 5
TODO:
Direct preview link 👉 here