Files
ChatLab/tests/build-worker-entries.test.ts
T
digua d3d2661882 fix(relationships): address galaxy review regressions
Bundle relationship worker entries for packaged builds.

Refresh and surface galaxy task failures, clean detached Pixi layers, cap focused neighborhoods, merge owner nodes across platforms, apply manual friend overrides, and track owner group activity.
2026-06-30 14:41:46 +08:00

28 lines
1021 B
TypeScript

/**
* 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/)
})