qwen-code/packages/web-shell/vitest.config.ts
ermin.zem 5c82857fea
Some checks are pending
E2E Tests / E2E Test (Linux) - sandbox:docker (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:none (push) Waiting to run
E2E Tests / E2E Test - macOS (push) Waiting to run
E2E Tests / web-shell Browser Regression (push) Waiting to run
Add harness infrastructure for web-shell package (#6517)
* test(web-shell): add browser and lint harness

* test(web-shell): harden browser smoke harness

* fix(web-shell): guard mock daemon model state

* test(web-shell): remove unused scenario harness

* fix(web-shell): remove stale lint disables

* test(web-shell): make matchMedia stub writable

* fix(web-shell): exclude tests from package typecheck

* test(web-shell): tighten mock daemon route contract

* Update packages/web-shell/client/e2e/utils/mockDaemon.ts

Co-authored-by: qwen-code-ci-bot <qwen-code-ci@service.alibaba.com>

* test(web-shell): clear stale SSE connections

* ci(web-shell): gate smoke on full CI profile

---------

Co-authored-by: ermin.zem <ermin.zem@alibaba-inc.com>
Co-authored-by: qwen-code-ci-bot <qwen-code-ci@service.alibaba.com>
Co-authored-by: Shaojin Wen <shaojin.wensj@alibaba-inc.com>
Co-authored-by: 易良 <1204183885@qq.com>
2026-07-09 08:11:58 +00:00

26 lines
672 B
TypeScript

import { configDefaults, defineConfig } from 'vitest/config';
export default defineConfig({
root: 'client',
test: {
setupFiles: ['./test/setup.ts'],
exclude: [...configDefaults.exclude, 'e2e/**'],
reporters: ['default', ['junit', { suiteName: '@qwen-code/web-shell' }]],
outputFile: {
junit: '../junit.xml',
},
coverage: {
provider: 'v8',
reportsDirectory: '../coverage',
reporter: ['text-summary', 'json-summary', 'html'],
include: ['**/*.{ts,tsx}'],
exclude: [
'**/*.test.{ts,tsx}',
'**/test/**',
'**/e2e/**',
'**/*.d.ts',
'vite-env.d.ts',
],
},
},
});