mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
chore(packages): add test coverage support to plugin sdk and shared package
This commit is contained in:
@@ -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/**
|
||||
|
||||
Reference in New Issue
Block a user