We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0973d76 commit 66d483cCopy full SHA for 66d483c
spec/javascripts/test_bundle.js
@@ -21,6 +21,16 @@ Vue.config.productionTip = false;
21
22
let hasVueWarnings = false;
23
Vue.config.warnHandler = (msg, vm, trace) => {
24
+ // The following workaround is necessary, so we are able to use setProps from Vue test utils
25
+ // see https://github.com/vuejs/vue-test-utils/issues/631#issuecomment-421108344
26
+ const currentStack = new Error('').stack;
27
+ const isInVueTestUtils = currentStack
28
+ .split('\n')
29
+ .some(line => line.startsWith(' at VueWrapper.setProps ('));
30
+ if (isInVueTestUtils) {
31
+ return;
32
+ }
33
+
34
hasVueWarnings = true;
35
fail(`${msg}${trace}`);
36
};
0 commit comments