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
setData() should set the data property to the new value passed in.
What is actually happening?
Throws errors:
TypeError: Cannot use 'in' operator to search for 'key' in null
at VueComponent.set [as $set] (webpack:///node_modules/vue/dist/vue.esm.js:1035:0 <- index.js:1195:11)
at webpack:///node_modules/@vue/test-utils/dist/vue-test-utils.js:1152:0 <- index.js:12632:10
at Array.forEach (<anonymous>)
at recursivelySetData (webpack:///node_modules/@vue/test-utils/dist/vue-test-utils.js:1147:0 <- index.js:12627:20)
at webpack:///node_modules/@vue/test-utils/dist/vue-test-utils.js:1150:0 <- index.js:12630:7
at Array.forEach (<anonymous>)
at recursivelySetData (webpack:///node_modules/@vue/test-utils/dist/vue-test-utils.js:1147:0 <- index.js:12627:20)
at VueWrapper.setData (webpack:///node_modules/@vue/test-utils/dist/vue-test-utils.js:1644:0 <- index.js:13124:3)
at Context.<anonymous> (webpack:///test/unit/specs/HelloWorld.spec.js:9:12 <- index.js:11445:13)
right-hand side of 'in' should be an object, got undefined
set@webpack:///node_modules/vue/dist/vue.esm.js:1035:0 <- index.js:1195:1
recursivelySetData/<@webpack:///node_modules/@vue/test-utils/dist/vue-test-utils.js:1152:0 <- index.js:12640:7
recursivelySetData@webpack:///node_modules/@vue/test-utils/dist/vue-test-utils.js:1147:0 <- index.js:12635:3
recursivelySetData/<@webpack:///node_modules/@vue/test-utils/dist/vue-test-utils.js:1150:0 <- index.js:12638:7
recursivelySetData@webpack:///node_modules/@vue/test-utils/dist/vue-test-utils.js:1147:0 <- index.js:12635:3
setData@webpack:///node_modules/@vue/test-utils/dist/vue-test-utils.js:1644:0 <- index.js:13132:3
@webpack:///test/unit/specs/HelloWorld.spec.js:18:4 <- index.js:11453:5
The text was updated successfully, but these errors were encountered:
Version
1.0.0-beta.22
Reproduction link
https://github.com/reginsmol/test-utils-setdata-reproduction
Steps to reproduce
What is expected?
setData() should set the data property to the new value passed in.
What is actually happening?
Throws errors:
The text was updated successfully, but these errors were encountered: