강의

멘토링

커뮤니티

Inflearn Community Q&A

ryu96630759's profile image
ryu96630759

asked

Front-end testing basics in 2 hours

Write Cypress success case

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

Written on

·

391

·

Edited

4

  • 스크린샷 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
    },
  },
});
reactjest소프트웨어-테스트Cypressstorybookchatgpt

Answer 2

1

또한 npm run start 로 서버가 구동되어야지 잘 되더라구요

1

jasonkang님의 프로필 이미지
jasonkang
Instructor

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

ryu96630759's profile image
ryu96630759

asked

Ask a question