Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ jobs:
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile
run: pnpm install

- name: Run security audit
run: |
Expand Down
19 changes: 19 additions & 0 deletions src/App.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { render, screen } from "@testing-library/react";

Check warning on line 1 in src/App.test.js

View workflow job for this annotation

GitHub Actions / Lint Code

'screen' is defined but never used
import App from "./App";

test("renders without crashing", () => {
render(<App />);
});

test("renders main content", () => {
render(<App />);
// Verifica che l'app si renderizzi correttamente
const appElement = document.querySelector(".App") || document.body;

Check failure on line 11 in src/App.test.js

View workflow job for this annotation

GitHub Actions / Lint Code

Avoid direct Node access. Prefer using the methods from Testing Library

Check failure on line 11 in src/App.test.js

View workflow job for this annotation

GitHub Actions / Lint Code

Avoid direct Node access. Prefer using the methods from Testing Library
expect(appElement).toBeInTheDocument();
});

test("app contains content", () => {
const { container } = render(<App />);
// Verifica che ci sia del contenuto nel DOM
expect(container.firstChild).toBeTruthy();

Check failure on line 18 in src/App.test.js

View workflow job for this annotation

GitHub Actions / Lint Code

Avoid direct Node access. Prefer using the methods from Testing Library
});
Loading