Skip to content

Commit 91a938e

Browse files
committed
docs: translate react-dom/test-utils warning page
Translate the react-dom/test-utils deprecation warning page into Korean while keeping code examples and heading anchors unchanged.
1 parent 7d46d78 commit 91a938e

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

src/content/warnings/react-dom-test-utils.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
11
---
2-
title: react-dom/test-utils Deprecation Warnings
2+
title: react-dom/test-utils 지원 중단 경고
33
---
44

5-
## ReactDOMTestUtils.act() warning {/*reactdomtestutilsact-warning*/}
5+
## ReactDOMTestUtils.act() 경고 {/*reactdomtestutilsact-warning*/}
66

7-
`act` from `react-dom/test-utils` has been deprecated in favor of `act` from `react`.
7+
`react-dom/test-utils``act`는 더 이상 사용되지 않습니다. 대신 `react``act`를 사용하세요.
88

9-
Before:
9+
이전 코드
1010

1111
```js
1212
import {act} from 'react-dom/test-utils';
1313
```
1414

15-
After:
15+
변경 후 코드
1616

1717
```js
1818
import {act} from 'react';
1919
```
2020

21-
## Rest of ReactDOMTestUtils APIS {/*rest-of-reactdomtestutils-apis*/}
21+
## 나머지 ReactDOMTestUtils API {/*rest-of-reactdomtestutils-apis*/}
2222

23-
All APIs except `act` have been removed.
23+
`act`를 제외한 모든 API는 제거되었습니다.
2424

25-
The React Team recommends migrating your tests to [@testing-library/react](https://testing-library.com/docs/react-testing-library/intro/) for a modern and well supported testing experience.
25+
React 팀은 안정적으로 지원되는 최신 테스트 환경을 위해 테스트를 [@testing-library/react](https://testing-library.com/docs/react-testing-library/intro/)로 마이그레이션하는 것을 권장합니다.
2626

2727
### ReactDOMTestUtils.renderIntoDocument {/*reactdomtestutilsrenderintodocument*/}
2828

29-
`renderIntoDocument` can be replaced with `render` from `@testing-library/react`.
29+
`renderIntoDocument``@testing-library/react``render`로 대체할 수 있습니다.
3030

31-
Before:
31+
이전 코드
3232

3333
```js
3434
import {renderIntoDocument} from 'react-dom/test-utils';
3535

3636
renderIntoDocument(<Component />);
3737
```
3838

39-
After:
39+
변경 후 코드
4040

4141
```js
4242
import {render} from '@testing-library/react';
@@ -46,9 +46,9 @@ render(<Component />);
4646

4747
### ReactDOMTestUtils.Simulate {/*reactdomtestutilssimulate*/}
4848

49-
`Simulate` can be replaced with `fireEvent` from `@testing-library/react`.
49+
`Simulate``@testing-library/react``fireEvent`로 대체할 수 있습니다.
5050

51-
Before:
51+
이전 코드
5252

5353
```js
5454
import {Simulate} from 'react-dom/test-utils';
@@ -57,7 +57,7 @@ const element = document.querySelector('button');
5757
Simulate.click(element);
5858
```
5959

60-
After:
60+
변경 후 코드
6161

6262
```js
6363
import {fireEvent} from '@testing-library/react';
@@ -66,9 +66,9 @@ const element = document.querySelector('button');
6666
fireEvent.click(element);
6767
```
6868

69-
Be aware that `fireEvent` dispatches an actual event on the element and doesn't just synthetically call the event handler.
69+
`fireEvent`는 이벤트 핸들러를 단순히 호출하는 것이 아니라 엘리먼트에 실제 이벤트를 디스패치한다는 점에 주의하세요.
7070

71-
### List of all removed APIs {/*list-of-all-removed-apis-list-of-all-removed-apis*/}
71+
### 제거된 모든 API 목록 {/*list-of-all-removed-apis-list-of-all-removed-apis*/}
7272

7373
- `mockComponent()`
7474
- `isElement()`

0 commit comments

Comments
 (0)