mirror of
https://github.com/flash555588/ai-model-workbench.git
synced 2026-07-22 06:56:38 +00:00
- Install vitest and @vitest/coverage-v8; add npm test script. - Extract remote-draft normalizer to pure module for testability. - Add tests for escapeHtml, remote draft sanitization, and ConversionManager timeout/deduplication. - Add data-testid to toolbar buttons via setAction().
15 lines
341 B
TypeScript
15 lines
341 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: false,
|
|
environment: "node",
|
|
include: ["src/**/*.test.ts"],
|
|
coverage: {
|
|
provider: "v8",
|
|
reporter: ["text", "html"],
|
|
include: ["src/**/*.ts"],
|
|
exclude: ["src/**/*.test.ts", "src/**/*.d.ts"],
|
|
},
|
|
},
|
|
});
|