1
0

feat: serve built SPA with fallback and artwork cache

This commit is contained in:
2026-08-29 17:46:52 +02:00
parent 875bc1087c
commit a3bf420282
3 changed files with 91 additions and 8 deletions

View File

@@ -1,15 +1,9 @@
import { describe, it, expect } from 'vitest'
import { buildApp } from '../src/app.js'
import { openDatabase } from '../src/db.js'
import type { Config } from '../src/config.js'
import { testConfig } from './helpers.js'
const config: Config = {
dataDir: ':memory:',
artworkDir: ':memory:',
dbPath: ':memory:',
port: 0,
sessionSecret: 'test-secret-test-secret-test-secret-1234',
}
const config = testConfig()
describe('GET /api/health', () => {
it('returns ok', async () => {