• 카테고리

    질문 & 답변
  • 세부 분야

    프론트엔드

  • 해결 여부

    해결됨

[공유] cy.visit() failed trying to load;

24.05.18 20:38 작성 24.05.18 20:40 수정 조회수 62

1

  • 스크린샷 2024-05-18 오후 8.38.11.png위 화면처럼 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

공유 감사합니다 준열님! 왠지 다른분들도 충분히 경험할 수 있는 에러인 것 같아요. 감사합니다 🙇‍♂