Files
pardis/tests/sync-server.js
Adrien W. 5686ee5072
All checks were successful
Tests et déploiement / validate (push) Successful in 2m44s
Tests et déploiement / deploy (push) Successful in 51s
Added optionnal online storage and cross-client sync
2026-10-10 16:01:06 +02:00

6 lines
304 B
JavaScript

// Isolated, disposable API for browser tests. Never opens the production DB.
import { createSyncServer } from '../server/app.js';
const server = createSyncServer({ maxVaults: 100 });
server.listen(3001, '127.0.0.1');
for (const signal of ['SIGTERM', 'SIGINT']) process.on(signal, () => server.close());