test(apps): strengthen application and build verification

This commit is contained in:
digua committed 2026-08-01 16:41:30 +08:00
1 parent bdfe4bbeb5
commit 2bb5eb3715
18 files changed
+465 -559

No files matched your search

-27
View File
@@ -1,27 +0,0 @@
/**
* Regression tests for worker bundle entry configuration.
*
* Run: pnpm test -- tests/build-worker-entries.test.ts
*/
import assert from 'node:assert/strict'
import { readFileSync } from 'node:fs'
import test from 'node:test'
function readProjectFile(path: string): string {
return readFileSync(path, 'utf-8')
}
test('CLI bundle emits the people relationships worker entry expected by the runtime resolver', () => {
const config = readProjectFile('apps/cli/tsup.config.ts')
assert.match(config, /['"]people-relationships-worker['"]\s*:/)
assert.match(config, /packages\/node-runtime\/src\/services\/people\/relationships\/worker-entry\.ts/)
})
test('Desktop bundle emits the people relationships worker entry expected by the runtime resolver', () => {
const config = readProjectFile('apps/desktop/electron.vite.config.ts')
assert.match(config, /['"]people-relationships-worker['"]\s*:/)
assert.match(config, /packages\/node-runtime\/src\/services\/people\/relationships\/worker-entry\.ts/)
})