import { defineConfig } from "vitest/config"; import { fileURLToPath } from "node:url"; const at = (p: string) => fileURLToPath(new URL(p, import.meta.url)); export default defineConfig({ resolve: { alias: { // The declarations live in types/lib/; the code is the verbatim lib/. "@lib": at("./lib"), "@data": at("./data"), "@app": at("./app/src"), "@shared": at("./shared"), "@prompt": at("./prompt"), }, }, test: { include: ["test/**/*.test.ts"], environment: "node", // sqlite-wasm loads a .wasm file; give the db suite room. testTimeout: 30_000, }, });