我试图按照此处列出的配置在我的测试中禁止显示警告: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)