feat: schema versioning with v2 migration (loans, last_played_at)
This commit is contained in:
@@ -9,11 +9,14 @@ import type { FastifyInstance } from 'fastify'
|
||||
export function testConfig(): Config {
|
||||
// artworkDir must be a real writable directory (cached images land there)
|
||||
const artworkDir = mkdtempSync(path.join(tmpdir(), 'rs-art-'))
|
||||
// backupsDir must be a real writable directory (backup files land there)
|
||||
const backupsDir = mkdtempSync(path.join(tmpdir(), 'rs-bak-'))
|
||||
// dataDir must be a real writable directory (release-cache payloads land there)
|
||||
const dataDir = mkdtempSync(path.join(tmpdir(), 'rs-data-'))
|
||||
return {
|
||||
dataDir,
|
||||
artworkDir,
|
||||
backupsDir,
|
||||
dbPath: ':memory:',
|
||||
port: 0,
|
||||
sessionSecret: 'test-secret-test-secret-test-secret-1234',
|
||||
|
||||
Reference in New Issue
Block a user