Wire up tests & sonarcloud

This commit is contained in:
Michael Telatynski
2025-01-30 10:58:23 +00:00
parent 06fcf783a1
commit 0a2f311cc8
3 changed files with 48 additions and 2 deletions
@@ -27,4 +27,22 @@ export default defineConfig({
define: {
__VERSION__: JSON.stringify(process.env.npm_package_version),
},
test: {
coverage: {
provider: "v8",
include: ["src/**/*"],
reporter: "lcov",
},
reporters: [
[
"vitest-sonar-reporter",
{
outputFile: "coverage/sonar-report.xml",
onWritePath(path: string): string {
return `packages/element-web-module-api/${path}`;
},
},
],
],
},
});