Skip to content

Commit

Permalink
test: jest 환경에서 시간대를 한국 시간대를 사용하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
pp449 committed Oct 15, 2024
1 parent 20d2f4c commit a1b0a0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/frontend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set timezone to Asia/Seoul
run: sudo timedatectl set-timezone Asia/Seoul

# 노드 설치
- name: Install Nodejs
uses: actions/setup-node@v4
Expand Down
1 change: 1 addition & 0 deletions frontend/jest.setup.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const { server } = require("@/mocks/server");

jest.mock("@/assets", () => "");
process.env.TZ = "Asia/Seoul";

// 모든 테스트 전에 MSW 서버를 시작합니다.
beforeAll(() => server.listen());
Expand Down

0 comments on commit a1b0a0a

Please sign in to comment.