Skip to content

Commit 0290bfb

Browse files
committed
adding vitest
1 parent fec2e04 commit 0290bfb

File tree

4 files changed

+195
-4
lines changed

4 files changed

+195
-4
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373

7474
- name: Install dependencies
7575
working-directory: ./client/game-client
76-
run: npm ci
76+
run: npm install
7777

7878
- name: Run unit tests
7979
working-directory: ./client/game-client
@@ -113,7 +113,7 @@ jobs:
113113
run: npx playwright test
114114

115115
- name: Upload Playwright report
116-
uses: actions/upload-artifact@v3
116+
uses: actions/upload-artifact@v4
117117
if: always()
118118
with:
119119
name: playwright-report
@@ -142,7 +142,7 @@ jobs:
142142

143143
- name: Install dependencies (game client)
144144
working-directory: ./client/game-client
145-
run: npm ci
145+
run: npm install
146146

147147
- name: Install dependencies (profile client)
148148
working-directory: ./client/profile-client

client/game-client/package-lock.json

Lines changed: 187 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/game-client/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"@types/react": "^18.2.43",
2626
"@types/react-dom": "^18.2.17",
2727
"@vitejs/plugin-react": "^4.2.1",
28+
"@vitest/coverage-v8": "^4.0.15",
2829
"autoprefixer": "^10.4.16",
2930
"jsdom": "^27.2.0",
3031
"postcss": "^8.4.32",

client/game-client/vite.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ export default defineConfig({
1414
test: {
1515
globals: true,
1616
environment: 'jsdom',
17-
setupFiles: './src/test/setup.js'
17+
setupFiles: './src/test/setup.js',
18+
coverage: {
19+
provider: 'v8'
20+
}
1821
}
1922
})
2023

0 commit comments

Comments
 (0)