From be6c16e916e01fff52fd12bdfcf7d569867d8a86 Mon Sep 17 00:00:00 2001 From: Sunny Sahsi Date: Tue, 26 Sep 2023 04:57:26 +0530 Subject: [PATCH] TEST: add test for Footer, Navbar and ProfileIcon --- .gitignore | 2 +- __tests__/components/Footer.test.tsx | 19 +++++++++++++++ __tests__/components/Navbar.test.tsx | 27 ++++++++++++++++++++++ __tests__/components/ProfileIcon.test.tsx | 15 ++++++++++++ src/components/ProfileIcon/ProfileIcon.tsx | 1 - 5 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 __tests__/components/Footer.test.tsx create mode 100644 __tests__/components/Navbar.test.tsx create mode 100644 __tests__/components/ProfileIcon.test.tsx diff --git a/.gitignore b/.gitignore index 0afa3a3..eef19c9 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,7 @@ # testing /coverage -/__tests__/__snapshots__ +./__tests__/__snapshots__ # next.js /.next/ diff --git a/__tests__/components/Footer.test.tsx b/__tests__/components/Footer.test.tsx new file mode 100644 index 0000000..a920cc8 --- /dev/null +++ b/__tests__/components/Footer.test.tsx @@ -0,0 +1,19 @@ +import { Footer } from '@/components/Footer/Footer'; +import { render } from '@testing-library/react'; + +describe('Footer', () => { + it('should render', () => { + const { container } = render(