Skip to content

Commit

Permalink
coverage/sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Sandor committed Sep 8, 2024
1 parent 2bb3223 commit e48c493
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ jobs:
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_FRONTEND }} # analysis token associated to your project
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST }}
with:
projectBaseDir: frontend/
3 changes: 1 addition & 2 deletions frontend/__tests__/Bookmark/BookmarkCard.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { beforeEach, describe, expect, it } from "vitest";
import { render, screen } from "@testing-library/react";
import { act } from "@testing-library/react";
import { act, render, screen } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import BookmarkCard from "@components/Bookmark/BookmarkCard";
import { populateTags } from "../utilities/BookmarkUtils/BookmarkUtil";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { clickAway } from "@/__tests__/utilities/TestingUtilities";
import PasswordReset from "@/app/account/resetPassword/page";
import { render, screen, waitFor } from "@testing-library/react";
import { act, render, screen, waitFor } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import axios from "axios";
import MockAdapter from "axios-mock-adapter";
import { act } from "react-dom/test-utils";
import { beforeEach, beforeAll, vi, describe, it, expect } from "vitest";
import { debug } from "vitest-preview";
const user = userEvent.setup();
Expand Down
1 change: 1 addition & 0 deletions frontend/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default defineConfig({
"api",
...defaults,
],
reporter: ['text', 'lcov'],
reportOnFailure: true,
},
testTimeout: 20000, // 20 seconds to run a test.
Expand Down

0 comments on commit e48c493

Please sign in to comment.