mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
test(apps): strengthen application and build verification
This commit is contained in:
1 parent
bdfe4bbeb5
commit
2bb5eb3715
18 files changed
+465
-559
No files matched your search
@@ -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/)
|
||||
})
|
||||
Reference in new issue
Block a user