@@ -7,7 +7,7 @@ title: Svelte Testing Library
7
7
[ Svelte] ( https://svelte.dev/ ) components & applications.
8
8
9
9
```
10
- npm install --save-dev svelte- testing-library
10
+ npm install --save-dev @ testing-library/svelte
11
11
```
12
12
13
13
- [ svelte-testing-library on GitHub] [ gh ]
@@ -21,7 +21,7 @@ order to use svelte in jest.
21
21
You must add ` cleanup ` to your test fixture's ` beforeEach ` hook:
22
22
23
23
``` javascript
24
- import { render , cleanup } from ' svelte- testing-library'
24
+ import { render , cleanup } from ' @ testing-library/svelte '
25
25
26
26
beforeEach (cleanup) // this is required.
27
27
```
@@ -48,7 +48,7 @@ App.spec.js
48
48
49
49
``` javascript
50
50
import App from ' ../src/App.svelte'
51
- import { render , cleanup } from ' svelte- testing-library'
51
+ import { render , cleanup } from ' @ testing-library/svelte '
52
52
beforeEach (cleanup)
53
53
describe (' App' , () => {
54
54
test (' should render greeting' , () => {
@@ -93,7 +93,7 @@ App.spec.js
93
93
94
94
``` javascript
95
95
import App from ' ../src/App.svelte'
96
- import { render , cleanup } from ' svelte- testing-library'
96
+ import { render , cleanup } from ' @ testing-library/svelte '
97
97
beforeEach (cleanup)
98
98
describe (' App' , () => {
99
99
test (' should render greeting' , () => {
0 commit comments