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

@@ -1,10 +0,0 @@
import assert from 'node:assert/strict'
import { readFileSync } from 'node:fs'
import test from 'node:test'
const source = readFileSync(new URL('./SessionInsights.vue', import.meta.url), 'utf8')
test('keeps member filter invalidation scoped to the active insight subtree', () => {
assert.equal(source.includes('abortAnalyticsRequests'), false)
assert.equal(source.match(/:key="selectedMemberId \?\? 'all'"/g)?.length, 3)
})
-14
View File
@@ -1,14 +0,0 @@
import assert from 'node:assert/strict'
import test from 'node:test'
import { webWasmRoutes } from './routes'
test('keeps Web WASM application routes independent from the backend client', () => {
assert.deepEqual(
webWasmRoutes.map(({ path, name }) => ({ path, name })),
[
{ path: '/', name: 'home' },
{ path: '/group-chat/:id', name: 'group-chat' },
{ path: '/private-chat/:id', name: 'private-chat' },
]
)
})