fix: emit DeepSeek Harness bundle manifest

This commit is contained in:
mesalogo
2026-08-15 18:06:03 +08:00
parent f27dd37f42
commit 9cd565fcc4
2 changed files with 76 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
// @vitest-environment node
import { describe, expect, it } from 'vitest'
import { serializeDeepSeekHarnessBundleManifest } from '../electron.vite.config'
describe('Electron Vite configuration', () => {
it('serializes the DeepSeek Harness bundle manifest', () => {
const source = serializeDeepSeekHarnessBundleManifest('1.2.3')
expect(JSON.parse(source)).toEqual({
name: '@deepseek-ai/dsh-llm',
version: '1.2.3',
private: true,
type: 'module'
})
expect(source.endsWith('\n')).toBe(true)
})
})