mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-26 02:04:37 +08:00
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.
28 lines
1021 B
TypeScript
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/)
|
|
})
|