-
카테고리
-
세부 분야
프론트엔드
-
해결 여부
해결됨
[공유] cy.visit() failed trying to load;
24.05.18 20:38 작성 24.05.18 20:40 수정 조회수 83
1
위 화면처럼 connect ECONNREFUSED::1:54382등 locahost에 접근할 수 없다고 나오면
cypress.config.ts에서 baseurl 설정해야합니다.
(https://parkparkpark.tistory.com/186)
import { defineConfig } from "cypress";
export default defineConfig({
e2e: {
baseUrl: "http://localhost:3000",
setupNodeEvents(on, config) {
// implement node event listeners here
},
},
});
답변을 작성해보세요.
1
답변 1