Files
bsk/vitest.config.js
tiennm99 2b1298eeb8 build: replace TypeScript toolchain with strict checkJs JS setup
- one strict checkJs jsconfig.json replaces tsconfig.json (keeps
  noUncheckedIndexedAccess); typecheck script now tsc -p jsconfig.json
- next.config.ts -> next.config.mjs; vitest/playwright configs -> .js
- db scripts run under plain node as .mjs; tsx devDep removed
- generated Supabase types move to types/supabase-bsk.d.ts and
  db:gen-types redirects there
- eslint drops eslint-config-next/typescript, adds eslint-plugin-jsdoc;
  factory-boundary no-restricted-imports globs now target .js
2026-08-17 23:12:25 +07:00

22 lines
523 B
JavaScript

import { defineConfig } from "vitest/config";
import path from "path";
export default defineConfig({
test: {
environment: "node",
include: ["tests/unit/**/*.test.js"],
coverage: {
provider: "v8",
reporter: ["text", "json", "html"],
include: ["lib/**/*.js"],
exclude: ["lib/**/*.d.ts", "lib/**/*.config.js"],
},
},
resolve: {
alias: {
"@": path.resolve(__dirname, "."),
"server-only": path.resolve(__dirname, "tests/unit/mocks/server-only.js"),
},
},
});