相关疑难解决方法(0)

在单元测试中禁止Vue警告

我试图按照此处列出的配置在我的测试中禁止显示警告:https : //vue-test-utils.vuejs.org/api/config.html#silent,如下所示:

import { config } from '@vue/test-utils';

// this should actually be the default but the default is not working
config.silent = true;
Run Code Online (Sandbox Code Playgroud)

但是,我仍然在测试结果中看到警告:

  TheQueue
? should show the queue bar if there are items queued
? should show the correct count of queued items in queued bar
[Vue warn]: Avoid mutating a prop directly since the value will be 
overwritten whenever the parent component re-renders. Instead, use a 
data or computed property based on the …
Run Code Online (Sandbox Code Playgroud)

vue.js vue-test-utils

6
推荐指数
1
解决办法
729
查看次数

标签 统计

vue-test-utils ×1

vue.js ×1