feat(web): add workspace-aware session flow

This commit is contained in:
imccyu
2026-07-25 16:04:48 +08:00
parent 755e2a8c51
commit 9eb9c70a8a
170 changed files with 7573 additions and 3006 deletions

View File

@@ -1,10 +1,10 @@
import tsconfigPaths from 'vite-tsconfig-paths'
import { defineConfig } from 'vitest/config'
// Web smoke lane (GUI, gate-exempt — not part of the CI sequence yet): built
// page + real chromium, so it lives outside the unit/e2e includes. The
// real-host test self-skips without DEEPSEEK_API_KEY; the fixture test is
// keyless and deterministic.
// Web smoke lane (GUI, gate-exempt — not part of the CI sequence yet): real
// host entry points plus built-client interaction snapshots, outside the
// unit/e2e includes. Real-model cases self-skip without DEEPSEEK_API_KEY;
// fixture branches stay keyless and deterministic.
try {
// Node >= 21.7 native; throws when the file does not exist.
process.loadEnvFile(new URL('.env', import.meta.url).pathname)
@@ -18,7 +18,10 @@ export default defineConfig({
// workspace imports to source like every other lane.
plugins: [tsconfigPaths({ projects: ['./tsconfig.base.json'] })],
test: {
include: ['apps/web/tests/**/*.e2e.ts'],
include: [
'apps/web/tests/**/*.e2e.ts',
'apps/web/tests/**/*.snapshot.ts',
],
// Browser boot + real-model turns are slow; files share one browser, run serial.
testTimeout: 180_000,
hookTimeout: 120_000,