mirror of
https://github.com/tiennm99/bsk.git
synced 2026-10-03 05:19:06 +00:00
- 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
22 lines
523 B
JavaScript
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"),
|
|
},
|
|
},
|
|
});
|