EvaE
Convex Communityβ€’17mo agoβ€’
11 replies
Eva

`convex-test` could not find the "_generated" directory

Just installed convex-test and wrote a very simple test at the root of my /convex folder. Running it produces an error:
Error: Could not find the "_generated" directory, make sure to run `npx convex dev` or `npx convex codegen`. If your Convex functions aren't defined in a directory called "convex" sibling to your node_modules, provide the second argument to `convexTest`

My _generated directory is present and my convex functions are all in /convex at the root of my project. Not sure what might be the issue.
CleanShot_2024-09-01_at_00.35.422x.png
Was this page helpful?