Skip to content

Commit 6a9e885

Browse files
author
Sergio Moreno
committed
feat: convert npm to yarn commands on docs
1 parent 0db925f commit 6a9e885

File tree

32 files changed

+3779
-6381
lines changed

32 files changed

+3779
-6381
lines changed

docs/angular-testing-library/intro.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ builds on top of
99
[`DOM Testing Library`](https://github.com/testing-library/dom-testing-library)
1010
by adding APIs for working with Angular components.
1111

12-
```bash
12+
```bash npm2yarn
1313
npm install --save-dev @testing-library/angular
1414
```
1515

docs/bs-react-testing-library/intro.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Bindings for several testing libraries have been ported to [ReasonML][re].
1313
[`bs-dom-testing-library`][gh-dom] contains [BuckleScript][bs] bindings for
1414
`DOM Testing Library`.
1515

16-
```
16+
```bash npm2yarn
1717
npm install --save-dev bs-dom-testing-library
1818
npm install --save-dev bs-react-testing-library
1919
```
@@ -49,7 +49,7 @@ _or_
4949
This is what [BuckleScript][bs] uses to compile the [Reason][re] code to JS. If
5050
it is not in your project you can install it like so:
5151

52-
```
52+
```bash npm2yarn
5353
npm install --save-dev bs-platform
5454
```
5555

@@ -60,7 +60,7 @@ examples here will be using it.
6060

6161
- [bs-jest on GitHub](https://github.com/glennsl/bs-jest)
6262

63-
```
63+
```bash npm2yarn
6464
npm install --save-dev @glennsl/bs-jest
6565
```
6666

docs/cypress-testing-library/intro.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: Cypress Testing Library
66
[`Cypress Testing Library`][gh] allows the use of dom-testing queries within
77
[Cypress](https://cypress.io) end-to-end browser tests.
88

9-
```
9+
```bash npm2yarn
1010
npm install --save-dev cypress @testing-library/cypress
1111
```
1212

docs/dom-testing-library/install.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sidebar_label: Install
77
This module is distributed via [npm][npm] which is bundled with [node][node] and
88
should be installed as one of your project's `devDependencies`:
99

10-
```
10+
```bash npm2yarn
1111
npm install --save-dev @testing-library/dom
1212
```
1313

docs/dom-testing-library/setup.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ setup the global environment to simulate the browser APIs.
2323

2424
First, install jsdom and global-jsdom.
2525

26-
```
26+
```bash npm2yarn
2727
npm install --save-dev jsdom global-jsdom
2828
```
2929

docs/ecosystem-bs-jest-dom.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: bs-jest-dom
88
custom DOM element matchers for Jest in [ReasonML][re] via
99
[BuckleScript][bucklescript].
1010

11-
```
11+
```bash npm2yarn
1212
npm install --save-dev bs-jest-dom
1313
```
1414

docs/ecosystem-jasmine-dom.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: jasmine-dom
66
[`jasmine-dom`][gh] is a companion library for Testing Library that provides
77
custom DOM element matchers for Jasmine
88

9-
```
9+
```bash npm2yarn
1010
npm install --save-dev @testing-library/jasmine-dom
1111
```
1212

docs/ecosystem-jest-dom.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: jest-dom
66
[`jest-dom`][gh] is a companion library for Testing Library that provides custom
77
DOM element matchers for Jest
88

9-
```
9+
```bash npm2yarn
1010
npm install --save-dev @testing-library/jest-dom
1111
```
1212

docs/ecosystem-jest-native.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ sidebar_label: jest-native
88
library for `React Native Testing Library` that provides custom element matchers
99
for Jest.
1010

11-
```
11+
```bash npm2yarn
1212
npm install --save-dev @testing-library/jest-native
1313
```
1414

1515
```javascript
16-
<View>
16+
;<View>
1717
<View testID="not-empty">
1818
<Text testID="empty" />
1919
</View>

docs/ecosystem-query-extensions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: query-extensions
77
Library that mixes a higher-level API into the standard `@testing-library` core
88
queries
99

10-
```
10+
```bash npm2yarn
1111
npm install --save-dev query-extensions
1212
```
1313

docs/ecosystem-react-select-event.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: react-select-event
77
that provides helper methods for interacting with [`react-select`][react-select]
88
elements.
99

10-
```
10+
```bash npm2yarn
1111
npm install --save-dev react-select-event
1212
```
1313

docs/ecosystem-riot-testing-library.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: riot-testing-library
77
[DOM Testing Library](https://github.com/testing-library/dom-testing-library) by
88
adding APIs for working with [Riot.js](https://riot.js.org/) components.
99

10-
```
10+
```bash npm2yarn
1111
npm install --save-dev riot-testing-library
1212
```
1313

docs/ecosystem-rtl-simple-queries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: rtl-simple-queries
66
[`rtl-simple-queries`][gh] is a companion library for `React Testing Library`
77
that provides an alternative query API.
88

9-
```
9+
```bash npm2yarn
1010
npm install --save-dev rtl-simple-queries
1111
```
1212

docs/ecosystem-testing-library-selector.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: testing-library-selector
66
[`testing-library-selector`][gh] is a library for `@testing-library` that
77
provides reusable selectors. Written in typescript.
88

9-
```
9+
```bash npm2yarn
1010
npm install --save-dev testing-library-selector
1111
```
1212

docs/ecosystem-user-event.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ advanced simulation of browser interactions than the built-in
1111

1212
## Install
1313

14-
```
14+
```bash npm2yarn
1515
npm install --save-dev @testing-library/user-event @testing-library/dom
1616
```
1717

docs/marko-testing-library/intro.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sidebar_label: Introduction
88
top of [`DOM Testing Library`](dom-testing-library/intro.mdx) by adding APIs for
99
working with Marko components.
1010

11-
```
11+
```bash npm2yarn
1212
npm install --save-dev @marko/testing-library
1313
```
1414

docs/nightwatch-testing-library/intro.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ in [Nightwatch](https://nightwatchjs.org) for end-to-end web testing.
1313
1414
then just
1515

16-
```
16+
```bash npm2yarn
1717
npm install -D @testing-library/nightwatch
1818
```
1919

docs/pptr-testing-library/intro.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: Puppeteer Testing Library
66
[`pptr-testing-library`][gh] is a lightweight adapter allowing
77
`DOM Testing Library` to be used with [`puppeteer`][ghpuppeteer].
88

9-
```
9+
```bash npm2yarn
1010
npm install --save-dev puppeteer pptr-testing-library
1111
```
1212

docs/preact-testing-library/intro.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sidebar_label: Introduction
88

99
[gh]: https://github.com/testing-library/preact-testing-library
1010

11-
```
11+
```bash npm2yarn
1212
npm install --save-dev @testing-library/preact
1313
```
1414

docs/preact-testing-library/learn.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ If you're still hungry for more at this point than checkout:
1515

1616
- The dom-testing-library:
1717
- [Introduction](intro.mdx)
18-
- [Queries](dom-testing-library/api-queries.mdx)
18+
- [Queries](dom-testing-library/api-custom-queries.mdx)
1919
- [Firing Events](dom-testing-library/api-events.mdx)
2020
- [Async Utilities](dom-testing-library/api-async.mdx)
2121
- [Helpers](dom-testing-library/api-helpers.mdx)

docs/react-native-testing-library/intro.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ active throughout the React Native Community.
2121

2222
## Quickstart
2323

24-
```
24+
```bash npm2yarn
2525
npm install --save-dev @testing-library/react-native
2626
```
2727

docs/react-testing-library/intro.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ APIs for working with React components.
1111
> out of the box support for **React Testing Library**. If that is not the case,
1212
> you can add it via `npm` like so:
1313
14-
```
14+
```bash npm2yarn
1515
npm install --save-dev @testing-library/react
1616
```
1717

docs/react-testing-library/migrate-from-enzyme.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ guide.
6868

6969
Here is what you should do, first you need to install the React Testing Library:
7070

71-
```
71+
```bash npm2yarn
7272
npm install --save-dev @testing-library/react @testing-library/jest-dom
7373
```
7474

@@ -299,7 +299,7 @@ which helps to ensure your tests resemble the way your software is used.
299299

300300
To use the `@testing-library/user-event` module, you first need to install it:
301301

302-
```
302+
```bash npm2yarn
303303
npm install --save-dev @testing-library/user-event @testing-library/dom
304304
```
305305

docs/react-testing-library/setup.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ fixes, required by React Testing Library.
296296

297297
First, install `jest-environment-jsdom-fifteen`.
298298

299-
```
299+
```bash npm2yarn
300300
npm install --save-dev jest-environment-jsdom-fifteen
301301
```
302302

@@ -325,7 +325,7 @@ browser APIs.
325325

326326
First, install `jsdom` and `global-jsdom`.
327327

328-
```
328+
```bash npm2yarn
329329
npm install --save-dev jsdom global-jsdom
330330
```
331331

docs/svelte-testing-library/intro.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sidebar_label: Introduction
88

99
[gh]: https://github.com/testing-library/svelte-testing-library
1010

11-
```
11+
```bash npm2yarn
1212
npm install --save-dev @testing-library/svelte
1313
```
1414

docs/svelte-testing-library/setup.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ with any testing framework and runner you're comfortable with.
1111

1212
1. Install Jest
1313

14-
```
14+
```bash npm2yarn
1515
npm install --save-dev jest
1616
```
1717

@@ -30,7 +30,7 @@ with any testing framework and runner you're comfortable with.
3030
we need to install
3131
[svelte-jester](https://github.com/mihar-22/svelte-jester)
3232

33-
```
33+
```bash npm2yarn
3434
npm install --save-dev svelte-jester
3535
```
3636

@@ -53,7 +53,7 @@ with any testing framework and runner you're comfortable with.
5353

5454
5.1 Install `babel-jest`
5555

56-
```bash
56+
```bash npm2yarn
5757
npm install --save-dev babel-jest
5858
```
5959

@@ -80,7 +80,7 @@ with any testing framework and runner you're comfortable with.
8080

8181
6.1 Install jest-dom
8282

83-
```
83+
```bash npm2yarn
8484
npm install --save-dev @testing-library/jest-dom
8585
```
8686

@@ -95,7 +95,7 @@ with any testing framework and runner you're comfortable with.
9595
7. Create your component + test file (checkout the rest of the docs to see how)
9696
and run it
9797

98-
```
98+
```bash npm2yarn
9999
npm run test
100100
```
101101

docs/testcafe-testing-library/intro.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ If you are new to the testing-library approach for writing tests, check out the
1515

1616
## Install
1717

18-
```
18+
```bash npm2yarn
1919
npm install --save-dev testcafe @testing-library/testcafe
2020
```
2121

docs/vue-testing-library/intro.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,18 @@ In short, Vue Testing Library does three things:
2020

2121
## Quickstart
2222

23-
```
23+
```bash npm2yarn
2424
npm install --save-dev @testing-library/vue
2525
```
2626

2727
You can now use all of `DOM Testing Library`'s `getBy`, `getAllBy`, `queryBy`
2828
and `queryAllBy` commands. See here the
2929
[full list of queries](docs/queries/about/#types-of-queries).
3030

31-
You may also be interested in installing `@testing-library/jest-dom` so you can use
32-
[the custom Jest matchers](https://github.com/testing-library/jest-dom#readme) for the
33-
DOM.
31+
You may also be interested in installing `@testing-library/jest-dom` so you can
32+
use
33+
[the custom Jest matchers](https://github.com/testing-library/jest-dom#readme)
34+
for the DOM.
3435

3536
## The problem
3637

docs/webdriverio-testing-library/intro.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ queries in [WebdriverIO](https://webdriver.io/) for end-to-end web testing.
1313
1414
then just
1515

16-
```
16+
```bash npm2yarn
1717
npm install -D @testing-library/webdriverio
1818
```
1919

docusaurus.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@ module.exports = {
216216
docs: {
217217
showLastUpdateAuthor: true,
218218
showLastUpdateTime: true,
219+
remarkPlugins: [
220+
[require('@docusaurus/remark-plugin-npm2yarn'), { sync: true }],
221+
],
219222
editUrl:
220223
'https://github.com/testing-library/testing-library-docs/edit/main/',
221224
path: './docs',

0 commit comments

Comments
 (0)