Skip to content

Commit 6ca470e

Browse files
committed
chore: use npm2yarn consistently
1 parent 94c161d commit 6ca470e

File tree

2 files changed

+2
-37
lines changed

2 files changed

+2
-37
lines changed

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)