File tree 2 files changed +7
-18
lines changed
2 files changed +7
-18
lines changed Original file line number Diff line number Diff line change 61
61
"@commitlint/cli" : " ^11.0.0" ,
62
62
"@commitlint/config-conventional" : " ^11.0.0" ,
63
63
"@testing-library/jest-dom" : " ^5.0.2" ,
64
- "@types/jest" : " ^26 .0.0" ,
64
+ "@types/jest" : " ^27 .0.0" ,
65
65
"all-contributors-cli" : " ^6.9.0" ,
66
66
"babel-eslint" : " ^10.0.3" ,
67
- "babel-jest" : " ^26 .0.1 " ,
67
+ "babel-jest" : " ^27 .0.0 " ,
68
68
"doctoc" : " ^2.0.0" ,
69
69
"eslint" : " ^7.2.0" ,
70
70
"eslint-config-standard" : " ^16.0.0" ,
74
74
"eslint-plugin-simple-import-sort" : " ^7.0.0" ,
75
75
"eslint-plugin-svelte3" : " ^3.0.0" ,
76
76
"husky" : " ^4.0.9" ,
77
- "jest" : " ^26 .0.1 " ,
77
+ "jest" : " ^27 .0.0 " ,
78
78
"lint-staged" : " ^10.0.0" ,
79
79
"npm-run-all" : " ^4.1.5" ,
80
80
"prettier" : " ^2.0.1" ,
81
81
"svelte" : " ^3.0.0" ,
82
- "svelte-jester" : " ^1.0.3 "
82
+ "svelte-jester" : " ^2.1.4 "
83
83
},
84
84
"husky" : {
85
85
"hooks" : {
118
118
"setupFilesAfterEnv" : [
119
119
" @testing-library/jest-dom/extend-expect"
120
120
],
121
+ "testEnvironment" : " jsdom" ,
121
122
"transform" : {
122
123
"^.+\\ .js$" : " babel-jest" ,
123
124
"^.+\\ .svelte$" : " svelte-jester" ,
Original file line number Diff line number Diff line change @@ -2,20 +2,8 @@ import { render } from '..'
2
2
import Comp from './fixtures/Comp'
3
3
4
4
describe ( 'multi-base' , ( ) => {
5
- let treeA
6
- let treeB
7
-
8
- beforeAll ( ( ) => {
9
- treeA = document . createElement ( 'div' )
10
- treeB = document . createElement ( 'div' )
11
- document . body . appendChild ( treeA )
12
- document . body . appendChild ( treeB )
13
- } )
14
-
15
- afterAll ( ( ) => {
16
- treeA . parentNode . removeChild ( treeA )
17
- treeB . parentNode . removeChild ( treeB )
18
- } )
5
+ const treeA = document . createElement ( 'div' )
6
+ const treeB = document . createElement ( 'div' )
19
7
20
8
test ( 'container isolates trees from one another' , ( ) => {
21
9
const { getByText : getByTextInA } = render ( Comp , {
You can’t perform that action at this time.
0 commit comments