forked from testing-library/vue-testing-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit 394bde7
feat(cleanup): automatically cleanup if afterEach is detected (testing-library#80)
You can disable this with the VTL_SKIP_CLEANUP environment variable, but it's recommended to have cleanup work this way.
Closes testing-library#77
BREAKING CHANGE: If your tests were not isolated before (and you referenced the same component between tests) then this change will break your tests. You should keep your tests isolated, but if you're unable/unwilling to do that right away, then you can run your tests with the environment variable VTL_SKIP_AUTO_CLEANUP set to true.1 parent 297c1c1 commit 394bde7
File tree
13 files changed
+81
-32
lines changed- src
- __tests__
13 files changed
+81
-32
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | - | ||
1 | + | ||
2 | + | ||
3 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | - | ||
1 | + | ||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 | - | ||
10 | 9 |
| |
11 | 10 |
| |
12 | 11 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | - | ||
1 | + | ||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 | - | ||
12 | - | ||
13 | - | ||
11 | + | ||
14 | 12 |
| |
15 | 13 |
| |
16 | 14 |
| |
17 | 15 |
| |
18 | 16 |
| |
19 | - | ||
17 | + | ||
20 | 18 |
| |
21 | 19 |
| |
22 | 20 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | - | ||
1 | + | ||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 | - | ||
6 | - | ||
7 | 5 |
| |
8 | 6 |
| |
9 | 7 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | - | ||
1 | + | ||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 | - | ||
6 | - | ||
7 | 5 |
| |
8 | 6 |
| |
9 | 7 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | - | ||
1 | + | ||
2 | 2 |
| |
3 | 3 |
| |
4 | - | ||
5 | - | ||
6 | 4 |
| |
7 | 5 |
| |
8 | 6 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | + | ||
2 | 3 |
| |
3 | - | ||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 | - | ||
15 | - | ||
16 | 14 |
| |
17 | 15 |
| |
18 | 16 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | - | ||
2 | + | ||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 | - | ||
7 | - | ||
8 | 6 |
| |
9 | 7 |
| |
10 | 8 |
| |
| |||
14 | 12 |
| |
15 | 13 |
| |
16 | 14 |
| |
17 | - | ||
15 | + | ||
18 | 16 |
| |
17 | + | ||
19 | 18 |
| |
19 | + | ||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 | - | ||
25 | + | ||
26 | + | ||
27 | + | ||
26 | 28 |
| |
27 | 29 |
| |
28 | 30 |
| |
|
0 commit comments