chore(packages): add test coverage support to plugin sdk and shared package

This commit is contained in:
jubnl
2026-08-25 01:22:20 +02:00
parent 190dc482e4
commit 4548743874
10 changed files with 545 additions and 265 deletions
+12 -7
View File
@@ -30,14 +30,17 @@ sonar.exclusions=\
**/*.spec.ts,\
**/*.d.ts
# Coverage — lcov paths relative to repo root.
# shared/ and plugin-sdk/ have test suites but don't emit lcov (no coverage
# reporter configured); their sources are coverage-excluded below until they do.
# Coverage — lcov paths relative to repo root, one per package
# (each package's vitest config emits lcov to <pkg>/coverage/).
sonar.javascript.lcov.reportPaths=\
server/coverage/lcov.info,\
client/coverage/lcov.info
client/coverage/lcov.info,\
shared/coverage/lcov.info,\
plugin-sdk/coverage/lcov.info
# Infrastructure/bootstrap files and packages without coverage instrumentation
# Infrastructure/bootstrap files plus generated/data files the vitest configs
# exclude from instrumentation (a file absent from lcov would otherwise count
# as 0% covered here — keep these in sync with each package's vitest.config.ts)
sonar.coverage.exclusions=\
server/src/index.ts,\
server/src/config.ts,\
@@ -48,8 +51,10 @@ sonar.coverage.exclusions=\
server/src/nest/plugins/runtime/plugin-host-entry.ts,\
client/src/main.tsx,\
client/src/types.ts,\
shared/src/**,\
plugin-sdk/src/**
shared/src/plugin-permissions.ts,\
shared/src/i18n/*/**,\
plugin-sdk/src/generated/**,\
plugin-sdk/src/lucide-icon-names.ts
# Locale files are large near-identical literal objects — keep them out of duplication metrics
sonar.cpd.exclusions=shared/src/i18n/**