cy.wait("api").then((xhr: any) => {
expect(xhr.method).to.eq("POST");
expect(xhr.status).to.eq(200);
expect(xhr.requestBody.test).to.not.exist;
});
expect(xhr.requestBody.test).到不存在;此行抛出eslint错误,如下所示:
error Expected an assignment or function call and instead saw an expression @typescript-eslint/no-unused-expressions