TripleSpeeder
TripleSpeeder
CCConvex Community
Created by wess on 12/19/2024 in #support-community
Should I use `users` table or `profiles`?
For this scenario I'm thinking it's probably better to just use the dedicated userProfile table. Assuming that when auth lib requires changes to the schema it will anyway not work properly when only updating code but not the schema... But I trust in @Tom and team that we will get proper docs and migration path for this case (once the lib is stable) 🙂
15 replies
CCConvex Community
Created by wess on 12/19/2024 in #support-community
Should I use `users` table or `profiles`?
Right now I I just copied everything from the convex auth users schema and added my own fields.
15 replies
CCConvex Community
Created by wess on 12/19/2024 in #support-community
Should I use `users` table or `profiles`?
Or is there a way?
15 replies
CCConvex Community
Created by wess on 12/19/2024 in #support-community
Should I use `users` table or `profiles`?
I also chose to customize the users table, prevents lots of boilerplate code and I don't see any harm in it. Only thing that would be nice if there was a way to extend the default scheme with something like spread operator.
const schema = defineTable({
...users,
myCustomFields
})
const schema = defineTable({
...users,
myCustomFields
})
15 replies
CCConvex Community
Created by TripleSpeeder on 12/14/2024 in #support-community
After moving from Clerk to Convex-Auth my convex tests fail
Thank you @ballingt , works fine now. I really love the support here, always competent and super fast, no matter if it's weekend. You guys are 👍
37 replies
CCConvex Community
Created by TripleSpeeder on 12/14/2024 in #support-community
After moving from Clerk to Convex-Auth my convex tests fail
I also have "bundler".
37 replies
CCConvex Community
Created by TripleSpeeder on 12/14/2024 in #support-community
After moving from Clerk to Convex-Auth my convex tests fail
No worries mate. Hope you guys sort it out until im Home 😇
37 replies
CCConvex Community
Created by TripleSpeeder on 12/14/2024 in #support-community
After moving from Clerk to Convex-Auth my convex tests fail
I'm on my mobile, will do that when im home
37 replies
CCConvex Community
Created by TripleSpeeder on 12/14/2024 in #support-community
After moving from Clerk to Convex-Auth my convex tests fail
Ha 😂
37 replies
CCConvex Community
Created by TripleSpeeder on 12/14/2024 in #support-community
After moving from Clerk to Convex-Auth my convex tests fail
Its all in one normal repo with one package.json. I do have a dedicated Typescript config in the convex dir though... Could this be a problem? I think I don't really need it.
37 replies
CCConvex Community
Created by TripleSpeeder on 6/7/2024 in #support-community
typed useQuery mock
No, i want to have the types inside the actual mock implementation. So e.g. in the switch statement, if i add a case for a not-existing query i get the appropriate typescript error thrown at me. Or if i return a mock response that does not conform the real response type.
4 replies
CCConvex Community
Created by TripleSpeeder on 6/3/2024 in #support-community
Error testing file upload
Yes, it seems to work fine with this config:
export default defineConfig({
plugins: [react(), tsconfigPaths()],
test: {
globals: true,
setupFiles: ["./vitest.setup.ts"],
environmentMatchGlobs: [
// all tests in convex/ will run in edge-runtime
["convex/**", "edge-runtime"],
// all other tests use jsdom
["**", "jsdom"],
],
server: { deps: { inline: ["convex-test"] } },
},
});
export default defineConfig({
plugins: [react(), tsconfigPaths()],
test: {
globals: true,
setupFiles: ["./vitest.setup.ts"],
environmentMatchGlobs: [
// all tests in convex/ will run in edge-runtime
["convex/**", "edge-runtime"],
// all other tests use jsdom
["**", "jsdom"],
],
server: { deps: { inline: ["convex-test"] } },
},
});
11 replies
CCConvex Community
Created by TripleSpeeder on 6/3/2024 in #support-community
Error testing file upload
Yes, this sounds like a good solution. trying 🙂
11 replies
CCConvex Community
Created by TripleSpeeder on 6/3/2024 in #support-community
Error testing file upload
I can confirm the blob issue us resolved when using the vitest config according to docs. But using the edge-runtime for frontend tests probably is not what I want :-).
11 replies
CCConvex Community
Created by TripleSpeeder on 6/3/2024 in #support-community
Error testing file upload
Should the vitest config reside within /convex/ directory? I'm using vitest also for component tests of my frontend code, so my vitest.config.ts in root folder looks like this:
import react from "@vitejs/plugin-react";
import tsconfigPaths from "vite-tsconfig-paths";
import { defineConfig } from "vitest/config";

export default defineConfig({
plugins: [react(), tsconfigPaths()],
test: {
globals: true,
environment: "jsdom",
setupFiles: ["./vitest.setup.ts"],
},
});
import react from "@vitejs/plugin-react";
import tsconfigPaths from "vite-tsconfig-paths";
import { defineConfig } from "vitest/config";

export default defineConfig({
plugins: [react(), tsconfigPaths()],
test: {
globals: true,
environment: "jsdom",
setupFiles: ["./vitest.setup.ts"],
},
});
11 replies
CCConvex Community
Created by TripleSpeeder on 6/3/2024 in #support-community
Error testing file upload
No, i have probably vitest defaults. Let me try 🙂
11 replies
CCConvex Community
Created by TripleSpeeder on 4/30/2024 in #support-community
index on string field - how to handle case (in)sensitivity?
Nice, thank you for the confirmation 🙂
3 replies
CCConvex Community
Created by TripleSpeeder on 4/22/2024 in #support-community
no "and" filter in convexTest?
Works fine 🙂
4 replies
CCConvex Community
Created by TripleSpeeder on 4/22/2024 in #support-community
no "and" filter in convexTest?
Thanks for the quick reply, will try this later today 🙂
4 replies
CCConvex Community
Created by TripleSpeeder on 2/19/2024 in #support-community
How can i map/extend the results of a paginatedQuery?
Ah, makes perfectly sense. Thank you 🙂
4 replies