sistema-de-chamados/vitest.setup.node.ts
Esdras Renan c640e288b1 chore(types): remove anys and harden Convex data fetch
- Strongly type company-service and API routes
- Fix Next.js searchParams (promise) in admin/machines page
- Add vitest module marker + stub for tsconfig-paths/register
- Use Convex query in client as primary fallback for machine details
- Replace any casts in admin machines components

Build + lint are clean locally; details page no longer skeleton-loops.
2025-10-22 19:19:38 -03:00

10 lines
474 B
TypeScript

// Node-only Vitest bootstrap: keep browser runs free from process dependencies.
if (typeof process !== "undefined" && process.versions?.node) {
await import("tsconfig-paths/register")
process.env.BETTER_AUTH_SECRET = process.env.BETTER_AUTH_SECRET ?? "test-secret"
process.env.NEXT_PUBLIC_APP_URL = process.env.NEXT_PUBLIC_APP_URL ?? "http://localhost:3000"
process.env.BETTER_AUTH_URL = process.env.BETTER_AUTH_URL ?? process.env.NEXT_PUBLIC_APP_URL
}
export {}