initialize Electron desktop app and remove unused files
Build / build (push) Canceled after 0s
Playwright / browser (push) Canceled after 0s

This commit is contained in:
2026-10-25 01:09:01 +08:00
commit 01d9e301fc
877 changed files with 262513 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { readFileSync } from 'node:fs'
import { describe, expect, it } from 'vitest'
describe('bootstrap body parser limits', () => {
it('allows MiMo voice-clone JSON payloads advertised by the UI/docs', () => {
const source = readFileSync('packages/server/src/index.ts', 'utf8')
expect(source).toContain("jsonLimit: '20mb'")
expect(source).toContain("formLimit: '20mb'")
})
it('parses DELETE request bodies for file operations', () => {
const source = readFileSync('packages/server/src/index.ts', 'utf8')
expect(source).toMatch(/parsedMethods:\s*\[\s*'POST',\s*'PUT',\s*'PATCH',\s*'DELETE'\s*\]/)
})
})