Skip to content

Commit c805e35

Browse files
committed
test: add coverage reporting to sonar
1 parent 04c9d92 commit c805e35

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

sonar-project.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
sonar.projectKey=sapphiredev_spinel
22
sonar.organization=sapphiredev
3+
sonar.javascript.lcov.reportPaths=./coverage/lcov.info

vitest.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ export default defineConfig({
1313
test: {
1414
globals: true,
1515
coverage: {
16-
enabled: false
16+
enabled: true,
17+
reporter: ['text', 'lcov']
1718
}
1819
}
1920
});

0 commit comments

Comments
 (0)