Fix running scripts

This commit is contained in:
Kalle 2024-11-18 22:13:07 +02:00
parent e3d37a0609
commit 1d9f515a8a
3 changed files with 2 additions and 4 deletions

View File

@ -30,5 +30,3 @@ VITE_SKALOP_WS_URL=ws://localhost:5900
// trunc, full or none (default: none)
SQL_LOG=trunc
USE_TEST_SEASONS=true

View File

@ -1,5 +1,5 @@
export const SEASONS =
import.meta.env.USE_TEST_SEASONS === "true"
process.env.NODE_ENV === "development"
? ([
{
nth: 0,

View File

@ -19,7 +19,7 @@
"biome:fix": "npx @biomejs/biome check --write .",
"biome:fix:unsafe": "npx @biomejs/biome check --write --unsafe .",
"typecheck": "tsc --noEmit",
"test:unit": "cross-env VITE_SITE_DOMAIN=http://localhost:5173 USE_TEST_SEASONS=false vitest run",
"test:unit": "cross-env VITE_SITE_DOMAIN=http://localhost:5173 vitest run",
"test:e2e": "npx playwright test",
"checks": "npm run biome:fix && npm run test:unit && npm run check-translation-jsons && npm run typecheck"
},