test(tracker-web): isolate e2e dev server
Some checks failed
Publish @bytelyst/* packages / publish (push) Failing after 12s
CI — Common Platform / Build, Test & Typecheck (push) Successful in 48s

This commit is contained in:
Saravana Kumar 2026-05-30 19:36:07 +00:00
parent e25969d5dc
commit 67104b8ebc
2 changed files with 6 additions and 7 deletions

View File

@ -8,7 +8,7 @@ export default defineConfig({
workers: process.env.CI ? 1 : undefined,
reporter: 'html',
use: {
baseURL: 'http://localhost:3003',
baseURL: 'http://127.0.0.1:3103',
trace: 'on-first-retry',
},
projects: [
@ -18,10 +18,10 @@ export default defineConfig({
},
],
webServer: {
command: 'npm run dev',
url: 'http://localhost:3003',
reuseExistingServer: !process.env.CI,
timeout: 30_000,
command: 'pnpm exec next dev --webpack --hostname 127.0.0.1 --port 3103',
url: 'http://127.0.0.1:3103',
reuseExistingServer: process.env.E2E_REUSE_SERVER === '1',
timeout: 60_000,
// Provide the env vars /api/health requires so the health gate is deterministic.
// These are non-secret placeholders only used to exercise the health handler.
env: {

View File

@ -7,10 +7,9 @@
* shared Key Vault (kv-mywisprai) used by all ByteLyst products.
*/
import { resolveSecrets, LYSNR_SECRETS } from '@bytelyst/config';
export async function register() {
if (process.env.NEXT_RUNTIME === 'nodejs') {
const { resolveSecrets, LYSNR_SECRETS } = await import('@bytelyst/config');
await resolveSecrets([LYSNR_SECRETS.JWT_SECRET]);
}
}