Skip to content

Commit c64ef79

Browse files
benmonroKent C. Dodds
authored andcommitted
updated svelte package name (#128)
1 parent ab2cebb commit c64ef79

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/svelte-testing-library/intro.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: Svelte Testing Library
77
[Svelte](https://svelte.dev/) components & applications.
88

99
```
10-
npm install --save-dev svelte-testing-library
10+
npm install --save-dev @testing-library/svelte
1111
```
1212

1313
- [svelte-testing-library on GitHub][gh]
@@ -21,7 +21,7 @@ order to use svelte in jest.
2121
You must add `cleanup` to your test fixture's `beforeEach` hook:
2222

2323
```javascript
24-
import { render, cleanup } from 'svelte-testing-library'
24+
import { render, cleanup } from '@testing-library/svelte'
2525

2626
beforeEach(cleanup) //this is required.
2727
```
@@ -48,7 +48,7 @@ App.spec.js
4848

4949
```javascript
5050
import App from '../src/App.svelte'
51-
import { render, cleanup } from 'svelte-testing-library'
51+
import { render, cleanup } from '@testing-library/svelte'
5252
beforeEach(cleanup)
5353
describe('App', () => {
5454
test('should render greeting', () => {
@@ -93,7 +93,7 @@ App.spec.js
9393

9494
```javascript
9595
import App from '../src/App.svelte'
96-
import { render, cleanup } from 'svelte-testing-library'
96+
import { render, cleanup } from '@testing-library/svelte'
9797
beforeEach(cleanup)
9898
describe('App', () => {
9999
test('should render greeting', () => {

0 commit comments

Comments
 (0)