diff --git a/.gitignore b/.gitignore index 253f2a8..1f8a48c 100644 --- a/.gitignore +++ b/.gitignore @@ -7,10 +7,7 @@ dist *.local .tanstack *.tgz -test/coverage - -# Editor directories and files -.vscode +coverage # Sonarqube sonarBuild.sh diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..d33c921 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "sonarlint.connectedMode.project": { + "connectionId": "mattrixwvSonarqube", + "projectKey": "MattrixwvReactComponents" + } +} \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index 0b89347..e7eaf23 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -83,6 +83,10 @@ export default defineConfig({ test: { globals: true, environment: "jsdom", - setupFiles: [ "test/vitest.setup.ts" ] + setupFiles: [ "test/vitest.setup.ts" ], + coverage: { + provider: "v8", + reporter: [ "html", "text", "lcov" ] + } } });