mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-02 17:26:24 +00:00
feat(tours): add non-motorized day tour planning
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user