Skip to content
Open
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 app/teste/page.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import TestePage from './page';
import '@testing-library/jest-dom';

const setup = () => render(<TestePage title="teste" />);
const setup = () => render(<TestePage />);

Check failure on line 6 in app/teste/page.spec.tsx

View workflow job for this annotation

GitHub Actions / Typecheck

Property 'title' is missing in type '{}' but required in type 'TestePageProps'.

describe('Page', () => {
it('renders a heading', () => {
Expand Down
1 change: 1 addition & 0 deletions app/teste/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default function TestePage({ title }: TestePageProps) {
return (
<div data-testid="testando">
<h1>{title}</h1>
<h5>{'subtitle'}</h5>
</div>
);
}
Loading