Files
zWhiteBoard/vitest.config.js
zikai d7d7450296 feat: 共享记事本前端 zWhiteBoard
textarea + WebSocket 实时同步、心跳、断线重连的便携式 Vue 组件。
复用 zTools2 的 /api/wb/* 与 /api/ws/wb/* 接口,与 zPDF_package 集成范式一致。
可独立运行或经 mainPage 构建期组件 import 集成(:locale + :boardId props)。
2026-07-28 10:32:41 +08:00

12 lines
374 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { defineConfig } from 'vitest/config'
import vue from '@vitejs/plugin-vue'
// 单元测试配置:仅测 composable/纯逻辑,不测 .vue避免 jsdom 依赖)。
// environment: node -> 依赖注入 mock 的 fetch/WebSocket/sessionStorage无需浏览器环境。
export default defineConfig({
plugins: [vue()],
test: {
environment: 'node',
},
})