Cypress错误:找不到任何要运行的测试
我正在做单元测试。赛普拉斯现在犯了一个错误。它找不到测试。但是在login.js文件中,我编写了代码。我不明白为什么它找不到测试,它确实存在 测试代码:Cypress错误:找不到任何要运行的测试,cypress,Cypress,我正在做单元测试。赛普拉斯现在犯了一个错误。它找不到测试。但是在login.js文件中,我编写了代码。我不明白为什么它找不到测试,它确实存在 测试代码: describe("login", () => { beforeEach(() => { cy.visit("http://localhost:8080"); }); })) 错误: integration\login.js 我们无法在上述文件中检测到任何测试。编写一些测试并重新运行 路径: server/cypress/
describe("login", () => {
beforeEach(() => {
cy.visit("http://localhost:8080");
});
}))
错误:
integration\login.js
我们无法在上述文件中检测到任何测试。编写一些测试并重新运行
路径:
server/cypress/integration/pad/login.js如果这是所有的测试代码,那么它实际上没有任何测试。添加任何“it”,cypress会将其识别为测试
describe("login", () => {
beforeEach(() => {
cy.visit("http://localhost:8080");
});
it('Example test', () => {
expect(add(1, 2)).to.eq(3)
})
});
请修复代码链接;)