Skip to content

Commit c00d60d

Browse files
committed
Apply suggested wording for before and after examples
The review suggested using shorter labels for the code comparison blocks. This updates all three react-dom/test-utils examples consistently. Confidence: high Scope-risk: narrow Tested: npx --yes yarn@1.22.22 textlint-lint; npx --yes yarn@1.22.22 prettier:diff; npx --yes yarn@1.22.22 lint-heading-ids
1 parent 1025232 commit c00d60d

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ title: react-dom/test-utils 지원 중단 경고
66

77
`react-dom/test-utils``act`는 더 이상 사용되지 않습니다. 대신 `react``act`를 사용하세요.
88

9-
이전 코드
9+
변경 전:
1010

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

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

1717
```js
1818
import {act} from 'react';
@@ -28,15 +28,15 @@ React 팀은 안정적으로 지원되는 최신 테스트 환경을 위해 테
2828

2929
`renderIntoDocument``@testing-library/react``render`로 대체할 수 있습니다.
3030

31-
이전 코드
31+
변경 전:
3232

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

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

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

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

4949
`Simulate``@testing-library/react``fireEvent`로 대체할 수 있습니다.
5050

51-
이전 코드
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-
변경 후 코드
60+
변경 후:
6161

6262
```js
6363
import {fireEvent} from '@testing-library/react';

0 commit comments

Comments
 (0)