Skip to content

Commit e1a8065

Browse files
committed
added react testing library tests dependency
1 parent be67929 commit e1a8065

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

www/__tests__/Blogs.test.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,7 @@ describe('Blog component test ', () => {
7272
const blogs = screen.getAllByTestId('blog')
7373
blogs.forEach((blog, index) => {
7474
console.debug(blog)
75-
expect(blog).toHaveProperty('title', blog.title);
76-
// expect(blog).toHaveProperty('description', blog.description);
77-
// expect(blog).toHaveProperty('description', blog.);
78-
// expect(blog).toHaveProperty('category.name', blog.title);
79-
// expect(blog).toHaveProperty('author.name', blog.title);
80-
// expect(blog).toHaveProperty('date', blog.date);
81-
// expect(blog).toHaveProperty('readingTime', blog.title);
75+
8276
})
8377

8478
});

www/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"@types/node": "^18.0.0",
3636
"@types/react": "^18.0.14",
3737
"@types/react-dom": "^18.0.5",
38+
"@types/testing-library__react": "^10.2.0",
3839
"@types/tiny-slider-react": "^0.3.4",
3940
"@typescript-eslint/eslint-plugin": "^5.33.0",
4041
"@typescript-eslint/parser": "^5.33.0",

0 commit comments

Comments
 (0)