mirror of
https://gitee.com/pnoker/iot-dc3.git
synced 2026-11-02 19:21:51 +08:00
adopts the remaining uncommitted work from the parallel session: five new guardian test files (client-errors, device-import-template, entity-id-guard, jwt-guard, option-hygiene) that lock in the error taxonomy, id encoding, and cli option hygiene; an attachment file cleaner in the agentic service; attachment controller and service tests; a salt-type fix in the auth store; ci workflow typecheck step; and the cli test report. 818 tests total across 37 files. Co-Authored-By: Claude Code <noreply@anthropic.com>
25 lines
751 B
TypeScript
25 lines
751 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: 'node',
|
|
include: ['test/**/*.test.ts'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
include: ['src/**/*.ts'],
|
|
// Ratchet floor for the coverage numbers reached by the hardening
|
|
// campaign (90.14% statements / 77.06% branches / 95.34% functions /
|
|
// ~90.16% lines), set one notch under so normal per-run jitter cannot
|
|
// redden CI. `pnpm test:coverage` exits non-zero the moment any metric
|
|
// drops below its floor, so the numbers are enforced, not decorative.
|
|
thresholds: {
|
|
statements: 89,
|
|
branches: 76,
|
|
functions: 94,
|
|
lines: 88,
|
|
},
|
|
},
|
|
},
|
|
});
|