Importing environment variables into tests.
This might not be a convex issue, but i sure couldn't get it working after a lot of searching and gpt's. I want to run tests on convex actions that call the clerk backend sdk. And i get a missing key error.
Wondering if anyone else has managed to get this working.
2 Replies
Have you tried:
before calling your action?
If you have Clerk SDK initialized in module scope, outside of an action, then you will have to do this before calling
convexTest()
.Thanks! that worked, its awesome. Now i got webhooks coming back creating things outside the "test" 😅