Skip to content

Commit fe250ab

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

File tree

30 files changed

+6248
-3346
lines changed

30 files changed

+6248
-3346
lines changed

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+
```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+
```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+
```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+
```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+
```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+
```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+
```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+
```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+
```npm2yarn
1010
npm install --save-dev @testing-library/jest-dom
1111
```
1212

docs/ecosystem-jest-native.mdx

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

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

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+
```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+
```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+
```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+
```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+
```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+
```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+
```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+
```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+
```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+
```npm2yarn
1212
npm install --save-dev @testing-library/preact
1313
```
1414

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+
```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+
```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+
```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+
```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+
```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+
```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+
```npm2yarn
1212
npm install --save-dev @testing-library/svelte
1313
```
1414

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+
```npm2yarn
1919
npm install --save-dev testcafe @testing-library/testcafe
2020
```
2121

docs/vue-testing-library/intro.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ In short, Vue Testing Library does three things:
2020

2121
## Quickstart
2222

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

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+
```npm2yarn
1717
npm install -D @testing-library/webdriverio
1818
```
1919

docusaurus.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ module.exports = {
216216
docs: {
217217
showLastUpdateAuthor: true,
218218
showLastUpdateTime: true,
219+
remarkPlugins: [require('./src/plugins/remark-npm2yarn')],
219220
editUrl:
220221
'https://github.com/testing-library/testing-library-docs/edit/main/',
221222
path: './docs',

0 commit comments

Comments
 (0)