下面是完整的错误:● Test suite failed to run[vue-jest] npm install --save-dev node-sass
at error (node_modules/vue-jest/lib/throw-error.jsat module.exports (node_modules/vue-jest</em
/functions';
test('calling b calls a with x+1', () => { expect(functions.a).toHaveBeenCalledWith(2);});
它在很大程度上起作用,除了如果我在describe(b)之后有额外的单元测试,这需要a()的原始实现,它仍然将被视为模拟函数,比如