You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`createWrapper()` is now an internal function only and cannot be imported anymore. If you need access to a wrapper for a DOM element which isn't a Vue component, you can use `new DOMWrapper()` constructor.
253
+
254
+
**Before:**
255
+
256
+
```js
257
+
import { createWrapper } from "@vue/test-utils";
258
+
259
+
describe('App', () => {
260
+
it('renders', () => {
261
+
constbody=createWrapper(document.body);
262
+
expect(body.exists()).toBe(true);
263
+
})
264
+
265
+
```
266
+
267
+
**After:**
268
+
269
+
```js
270
+
import { DOMWrapper } from"@vue/test-utils";
271
+
272
+
describe('App', () => {
273
+
it('renders', () => {
274
+
constbody=newDOMWrapper(document.body);
275
+
expect(body.exists()).toBe(true);
276
+
})
277
+
```
278
+
250
279
## Test runners upgrade notes
251
280
252
281
> Vue Test Utils is framework agnostic - you can use it with whichever test runner you like.
0 commit comments