diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index be40a99..4745367 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -51,7 +51,7 @@ jobs: -Dsonar.sources=src/ -Dsonar.exclusions=src/__test__/** -Dsonar.tests=src/__test__/ - -Dsonar.verbose=true + -Dsonar.verbose=false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 8e30423..9a517c9 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -47,13 +47,13 @@ jobs: -Dsonar.sources=src/ -Dsonar.exclusions=src/__test__/** -Dsonar.tests=src/__test__/ - -Dsonar.verbose=true + -Dsonar.verbose=false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} client-docker-build: - name: Build Docker image + name: Build Client Docker image runs-on: ubuntu-latest needs: - client-sonarcloud diff --git a/client/sonar-project.properties b/client/sonar-project.properties deleted file mode 100644 index 32cfb2a..0000000 --- a/client/sonar-project.properties +++ /dev/null @@ -1,12 +0,0 @@ -sonar.projectKey=ricardo-campos-org_react-typescript-todolist -sonar.organization=ricardo-campos-org - -# This is the name and version displayed in the SonarCloud UI. -#sonar.projectName=react-typescript-todolist -#sonar.projectVersion=1.0 - -# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. -#sonar.sources=. - -# Encoding of the source code. Default is default system encoding -sonar.sourceEncoding=UTF-8 diff --git a/client/src/__test__/App.test.tsx b/client/src/__test__/App.test.tsx index 6f5e9a7..b63206d 100644 --- a/client/src/__test__/App.test.tsx +++ b/client/src/__test__/App.test.tsx @@ -1,3 +1,4 @@ +import React from 'react'; import { test } from "vitest"; import App from "../App"; import { render } from "@testing-library/react"; diff --git a/client/tsconfig.json b/client/tsconfig.json index 50daaae..ac1c0ab 100644 --- a/client/tsconfig.json +++ b/client/tsconfig.json @@ -25,5 +25,8 @@ }, "include": [ "src" + ], + "exclude": [ + "src/__test__/" ] }