feat(tours): add non-motorized day tour planning

This commit is contained in:
elmocito
2026-10-04 12:59:55 +02:00
parent c93cf2bce9
commit 9e475f447a
202 changed files with 16129 additions and 383 deletions
@@ -7,6 +7,16 @@
*/
import { describe, it, expect, vi } from 'vitest';
import Database from 'better-sqlite3';
vi.mock('../../../src/config', () => ({
ENCRYPTION_KEY: 'migration-atomicity-test-key',
JWT_SECRET: 'migration-atomicity-test-secret',
updateJwtSecret: vi.fn(),
}));
vi.mock('../../../src/db/database', () => {
throw new Error('Migration version atomicity tests must not import the global database');
});
import { createTables } from '../../../src/db/schema';
import { runMigrations } from '../../../src/db/migrations';