mirror of
https://github.com/tiennm99/bsk.git
synced 2026-08-27 12:26:47 +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
36 lines
919 B
JavaScript
36 lines
919 B
JavaScript
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
export default defineConfig({
|
|
testDir: "tests/e2e",
|
|
fullyParallel: true,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 2 : 0,
|
|
workers: process.env.CI ? 1 : undefined,
|
|
reporter: "list",
|
|
use: {
|
|
baseURL: "http://127.0.0.1:3000",
|
|
trace: "on-first-retry",
|
|
},
|
|
|
|
projects: [
|
|
{
|
|
name: "chromium",
|
|
use: { ...devices["Desktop Chrome"] },
|
|
},
|
|
],
|
|
|
|
webServer: {
|
|
command: "npm run build && npm start",
|
|
url: "http://127.0.0.1:3000",
|
|
reuseExistingServer: !process.env.CI,
|
|
env: {
|
|
NEXT_PUBLIC_APP_ENV: "dev",
|
|
NEXT_PUBLIC_SUPABASE_URL: "https://placeholder.supabase.co",
|
|
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY: "sb_publishable_x",
|
|
SUPABASE_SECRET_KEY: "sb_secret_x",
|
|
UPSTASH_REDIS_REST_URL: "https://placeholder.upstash.io",
|
|
UPSTASH_REDIS_REST_TOKEN: "x",
|
|
},
|
|
},
|
|
});
|