Skip to content

Commit 47c5eb0

Browse files
committed
chore: use npm2yarn consistently
1 parent 94c161d commit 47c5eb0

File tree

3 files changed

+4
-39
lines changed

3 files changed

+4
-39
lines changed

docs/dom-testing-library/api-debugging.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ value is `7000`. You will see `...` in the console, when the DOM content is
3232
stripped off, because of the length you have set or due to default size limit.
3333
Here's how you might increase this limit when running tests:
3434

35-
```
35+
```bash npm2yarn
3636
DEBUG_PRINT_LIMIT=10000 npm test
3737
```
3838

@@ -46,7 +46,7 @@ colors, such as in cases where the output is written to a log file for debugging
4646
purposes. You can use the environment variable `COLORS` to explicitly force the
4747
colorization off or on. For example:
4848

49-
```
49+
```bash npm2yarn
5050
COLORS=false npm test
5151
```
5252

docs/ecosystem-user-event.mdx

+1-17
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ id: ecosystem-user-event
33
title: user-event v13
44
---
55

6-
import Tabs from '@theme/Tabs'
7-
import TabItem from '@theme/TabItem'
8-
96
[`user-event`][gh] is a companion library for Testing Library that provides more
107
advanced simulation of browser interactions than the built-in
118
[`fireEvent`](dom-testing-library/api-events.mdx#fireevent) method.
@@ -21,23 +18,10 @@ fixes and new features.
2118

2219
## Installation
2320

24-
<Tabs defaultValue="npm" values={[{ label: 'npm', value: 'npm' }, { label: 'Yarn', value: 'yarn' }]}>
25-
<TabItem value="npm">
26-
27-
```sh
21+
```bash npm2yarn
2822
npm install --save-dev @testing-library/user-event @testing-library/dom
2923
```
3024

31-
</TabItem>
32-
<TabItem value="yarn">
33-
34-
```sh
35-
yarn add --dev @testing-library/user-event @testing-library/dom
36-
```
37-
38-
</TabItem>
39-
</Tabs>
40-
4125
Now simply import it in your tests:
4226

4327
```js

docs/user-event/install.mdx

+1-20
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,10 @@ id: install
33
title: Installation
44
---
55

6-
import Tabs from '@theme/Tabs'
7-
import TabItem from '@theme/TabItem'
8-
9-
<Tabs defaultValue="npm" values={[
10-
{ label: 'npm', value: 'npm' },
11-
{ label: 'Yarn', value: 'yarn' },
12-
]}>
13-
<TabItem value="npm">
14-
15-
```sh
6+
```bash npm2yarn
167
npm install --save-dev @testing-library/user-event
178
```
189

19-
</TabItem>
20-
<TabItem value="yarn">
21-
22-
```sh
23-
yarn add --dev @testing-library/user-event
24-
```
25-
26-
</TabItem>
27-
</Tabs>
28-
2910
Note that `@testing-library/user-event` requires `@testing-library/dom`.
3011

3112
If you use one of the

0 commit comments

Comments
 (0)