Skip to content

Commit

Permalink
Merge pull request #49 from falsy/feature/44/ci
Browse files Browse the repository at this point in the history
test: 상용 API 서버와 통신, 테스트 환경에서 로컬 API 서버 실행하지 않도록 변경
  • Loading branch information
falsy authored Dec 14, 2024
2 parents 3d27307 + ca76bd5 commit 2c7dd15
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/cypress-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,11 @@ jobs:
- name: Install dependencies
run: yarn install

- name: Start server
run: yarn dev:server &
env:
NODE_ENV: development

- name: Start client
run: yarn start:client &
env:
NODE_ENV: development

- name: Wait for server
run: npx wait-on http://localhost:3000

- name: Wait for client
run: npx wait-on http://localhost:2000

Expand Down
2 changes: 1 addition & 1 deletion packages/client/cypress/e2e/spec.cy.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
describe("배송 조회 페이지", () => {
beforeEach(() => {
// 배송 조회 박스 추가
cy.intercept("GET", "http://localhost:3000/carriers").as("getCarriers")
cy.intercept("GET", "https://parcel.falsy.me/carriers").as("getCarriers")
cy.visit("http://localhost:2000")
cy.wait("@getCarriers")
cy.get("#create-tracker-button").click()
Expand Down
4 changes: 1 addition & 3 deletions packages/client/src/constants/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
export const API_URL = globalThis.whale
? "https://parcel.falsy.me"
: "http://localhost:3000" // dev
export const API_URL = "https://parcel.falsy.me"
export const TRACKER_LIST = "TRACKER_LIST"

0 comments on commit 2c7dd15

Please sign in to comment.