Skip to content

Commit 8f3da68

Browse files
committed
added dependencies in root package.json
1 parent e1a8065 commit 8f3da68

File tree

3 files changed

+231
-996
lines changed

3 files changed

+231
-996
lines changed

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
"transform": {
66
"^.+\\.(js|ts|tsx)$": "ts-jest"
77
},
8-
"transformIgnorePatterns": ["/node_modules/(?!d3|d3-array|internmap|delaunator|robust-predicates)"],
8+
"testPathIgnorePatterns": ["www"],
9+
"transformIgnorePatterns": [
10+
"/node_modules/(?!d3|d3-array|internmap|delaunator|robust-predicates)"
11+
],
912
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
1013
"moduleFileExtensions": [
1114
"ts",
@@ -98,6 +101,7 @@
98101
"@babel/preset-react": "^7.12.7",
99102
"@emotion/babel-plugin": "^11.7.2",
100103
"@testing-library/jest-dom": "^4.2.4",
104+
"@testing-library/react": "^13.4.0",
101105
"@types/chai": "^4.2.14",
102106
"@types/chrome": "^0.0.119",
103107
"@types/d3": "^7.4.0",

www/__tests__/Blogs.test.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { render, screen } from '@testing-library/react';
22
import '@testing-library/jest-dom/extend-expect';
33
import Blogs from '../src/pages/components/Blogs';
4+
import React from 'react';
45

56
const posts = [
67
{
@@ -70,11 +71,9 @@ describe('Blog component test ', () => {
7071

7172
it ('displays the correct information for each blog post', () => {
7273
const blogs = screen.getAllByTestId('blog')
73-
blogs.forEach((blog, index) => {
74-
console.debug(blog)
74+
blogs.forEach((blog) => {
7575

76-
})
7776

77+
})
7878
});
79-
8079
});

0 commit comments

Comments
 (0)