摘要: error:... is not a constructor reason:The mock can't be an arrow function because calling new on an arrow function is not allowed in JavaScript. > ref 阅读全文