Skip to content

Commit c3c7e6f

Browse files
build: rename package @testing-library/webdriverio
Publish the project under the testing-library organisation. Use new package name in readme examples and update readme links to use new npm url.
1 parent 12ce91e commit c3c7e6f

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ This module is distributed via [npm][npm] which is bundled with [node][node] and
6060
should be installed as one of your project's `devDependencies`:
6161

6262
```
63-
npm install --save-dev webdriverio-testing-library
63+
npm install --save-dev @testing-library/webdriverio
6464
```
6565

6666
## Usage
@@ -72,7 +72,7 @@ modifed to return WebdriverIO Elements. All the queries are async, including
7272
queryBy and getBy variants, and are bound to `document.body` by default.
7373

7474
```
75-
const {setupBrowser} = require('webdriverio-testing-library');
75+
const {setupBrowser} = require('@testing-library/webdriverio');
7676
7777
it('can click button', async () => {
7878
const {getByText} = setupBrowser(browser)
@@ -111,7 +111,7 @@ it('adds queries as element commands scoped to element', async () => {
111111
Returns queries scoped to a WebdriverIO element
112112

113113
```
114-
const {within} = require('webdriverio-testing-library')
114+
const {within} = require('@testing-library/webdriverio')
115115
116116
it('within scopes queries to element', async () => {
117117
const nested = await browser.$('*[data-testid="nested"]');
@@ -128,7 +128,7 @@ it('within scopes queries to element', async () => {
128128
Lets you pass a config to dom-testing-library
129129

130130
```
131-
const {configure} = require('webdriverio-testing-library')
131+
const {configure} = require('@testing-library/webdriverio')
132132
133133
beforeEach(() => {
134134
configure({testIdAttribute: 'data-automation-id'})
@@ -151,7 +151,7 @@ added by `setupBrowser` the global `WebdriverIO` namespace will need to be
151151
modified. Add the following to a typescript module:
152152

153153
```
154-
import {WebdriverIOQueries} from 'webdriverio-testing-library';
154+
import {WebdriverIOQueries} from '@testing-library/webdriverio';
155155
156156
declare global {
157157
namespace WebdriverIO {
@@ -165,7 +165,7 @@ If you are using the `@wdio/sync` framework you will need to use the
165165
`WebdriverIOQueriesSync` type to extend the interfaces:
166166

167167
```
168-
import {WebdriverIOQueriesSync} from 'webdriverio-testing-library';
168+
import {WebdriverIOQueriesSync} from '@testing-library/webdriverio';
169169
170170
declare global {
171171
namespace WebdriverIO {
@@ -189,10 +189,10 @@ MIT
189189
[build-badge]: https://github.com/olivierwilkinson/webdriverio-testing-library/workflows/webdriverio-testing-library/badge.svg
190190
[build]: https://github.com/olivierwilkinson/webdriverio-testing-library/actions?query=branch%3Amaster+workflow%3Awebdriverio-testing-library
191191
[version-badge]: https://img.shields.io/npm/v/olivierwilkinson/webdriverio-testing-library.svg?style=flat-square
192-
[package]: https://www.npmjs.com/package/webdriverio-testing-library
193-
[downloads-badge]: https://img.shields.io/npm/dm/olivierwilkinson/webdriverio-testing-library.svg?style=flat-square
194-
[npmtrends]: http://www.npmtrends.com/webdriverio-testing-library
195-
[license-badge]: https://img.shields.io/npm/l/webdriverio-testing-library.svg?style=flat-square
192+
[package]: https://www.npmjs.com/package/@testing-library/webdriverio
193+
[downloads-badge]:https://img.shields.io/npm/dm/@testing-library/webdriverio.svg?style=flat-square
194+
[npmtrends]: http://www.npmtrends.com/@testing-library/webdriverio
195+
[license-badge]: https://img.shields.io/npm/l/@testing-library/webdriverio.svg?style=flat-square
196196
[license]: https://github.com/olivierwilkinson/webdriverio-testing-library/blob/master/LICENSE
197197
[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
198198
[prs]: http://makeapullrequest.com

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "webdriverio-testing-library",
2+
"name": "@testing-library/webdriverio",
33
"version": "1.1.0",
44
"description": "",
55
"main": "dist/index.js",

0 commit comments

Comments
 (0)