Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/GU-99/grow-up-fe into fe…
Browse files Browse the repository at this point in the history
…ature/#230-delete-profile-img
  • Loading branch information
Yoonyesol committed Nov 17, 2024
2 parents d957311 + b84ac6e commit 9721103
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/vitest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: vitest-workflow

on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
branches:
- main
- develop
paths:
- 'src/**'

jobs:
vitest:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install node.js v20
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install yarn dependencies
run: yarn install

- name: Run tests with vitest
run: yarn run test -- --passWithNoTests
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"build": "tsc --project tsconfig.prod.json && vite build",
"lint": "eslint . --ext ts,tsx,js,jsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"test": "vitest --watch",
"test": "vitest",
"test:watch": "vitest --watch",
"test-ui": "vitest --ui",
"coverage": "vitest run --coverage",
"prepare": "husky"
Expand Down
1 change: 0 additions & 1 deletion src/stores/useStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ const createAuthSlice: StateCreator<Store, [], [], AuthStore> = (set) => ({

setTimeout(() => {
set({
isAuthenticated: false,
accessToken: null,
});
}, AUTH_SETTINGS.ACCESS_TOKEN_EXPIRATION);
Expand Down

0 comments on commit 9721103

Please sign in to comment.