Where to store api helper utils?
Was looking where i store api utils that i want to format response or do some shared util checking etc.. without them being generated into the api files
7 Replies
You can store them inside or outside the convex/ folder. As long as they're not exported as
query
, mutation
, or action
, they won't be included in the apiahh ok, i thought i was seeing them in generated file mappings, but i guess they dont get exposed
thanks!
is there also away to ignore coverage files?
ie:
You should just be able to exclude it via the tsconfig.json exclude option in convex folder
thanks!
Ah yeah putting non-ts/js files in the convex directory doesn't work very well right now. Files with two dots like foo.test.ts are ignored. Personally i would put them outside the convex directory if possible
Usually the coverage folder should be generated from the root of your project. Maybe you're running the test command from the convex/ directory instead of from its parent.
i did move it to the root, and the. my ide (webstorm) stopped displaying coverage inline
weird it wont go back now
updated some config and it worked