feat: redesign match play and add broadcast tooling

This commit is contained in:
2026-09-29 02:52:56 +00:00
parent f417a831f7
commit 9b9aafefc1
348 changed files with 31588 additions and 11094 deletions

16
scripts/test-auth.ts Normal file
View File

@@ -0,0 +1,16 @@
/** Run against an empty test database created from the current application schema. */
const base = process.env.AUTH_TEST_DATABASE_URL ?? process.env.DB_URL ?? process.env.DATABASE_URL;
if (!base) throw new Error('Provide AUTH_TEST_DATABASE_URL');
const url = new URL(base);
if (!process.env.AUTH_TEST_DATABASE_URL) url.pathname = '/esports_auth_test_20260928';
if (!url.pathname.startsWith('/esports_auth_test'))
throw new Error('Refusing to run against a non-test database');
const child = Bun.spawn(
['bun', '--bun', 'x', 'vitest', '--run', 'src/lib/server/auth.integration.test.ts'],
{
env: { ...process.env, AUTH_TEST_DATABASE_URL: url.toString() },
stdout: 'inherit',
stderr: 'inherit'
}
);
process.exit(await child.exited);