Skip to content

Commit b6a320c

Browse files
author
최한울
committed
jest 가 작동하지 않는 문제를 해결한다 2
- testing-library/dom-testing-library#756 - 위와 같은 이슈가 생기고 있어 문제 해결
1 parent 1fee2fe commit b6a320c

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"eslint-plugin-react-hooks": "^1.7.0",
6868
"jest": "^27.0.6",
6969
"jest-plugin-context": "^2.9.0",
70-
"webpack-cli": "^4.7.2"
70+
"webpack-cli": "^4.7.2",
71+
"jest-environment-jsdom": "~27.0"
7172
}
7273
}

src/App.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import React from 'react';
22

33
function App() {
4+
return (
5+
<h2>SOOM.GG</h2>
6+
)
47
}
58

69
export default App;

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7013,7 +7013,7 @@ jest-environment-jsdom@^26.6.2:
70137013
jest-util "^26.6.2"
70147014
jsdom "^16.4.0"
70157015

7016-
jest-environment-jsdom@^27.0.6:
7016+
jest-environment-jsdom@^27.0.6, jest-environment-jsdom@~27.0:
70177017
version "27.0.6"
70187018
resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-27.0.6.tgz#f66426c4c9950807d0a9f209c590ce544f73291f"
70197019
integrity sha512-FvetXg7lnXL9+78H+xUAsra3IeZRTiegA3An01cWeXBspKXUhAwMM9ycIJ4yBaR0L7HkoMPaZsozCLHh4T8fuw==

0 commit comments

Comments
 (0)