等待一整分钟后,测试似乎已经超时。尝试检查错误的响应以及行
cy.exec('npm run build').then((result) => {
console.log("code---->", result.code);
console.log("stdout---->", result.stdout);
console.log("error---->", result.stderr);
})
用你的代码替换'npm run build'。
另外,你想在那里做什么,在前一块?