Skip to content

Commit

Permalink
Fix Coverage CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Gugustinette committed May 11, 2024
1 parent d76dc9c commit 2803c52
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Build with VitePress
run: npm run docs:build
- name: Move test reports to the docs folder
run: mv html docs/.vitepress/dist/test-reports
run: mv html docs/.vitepress/dist/test-reports && mv fibbo/test-reports/coverage docs/.vitepress/dist/coverage
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
6 changes: 6 additions & 0 deletions docs/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@ import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
reporters: ['html'],
coverage: {
enabled: true,
include: ['packages'],
reporter: [['html', { subdir: 'coverage' }]],
reportsDirectory: 'fibbo',
},
},
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"keywords": [],
"scripts": {
"test:ui": "vitest --ui --coverage --coverage.include=packages",
"test:report": "vitest run --coverage --coverage.include=packages --config ./docs/vitest.config.ts",
"test:report": "vitest run --config ./docs/vitest.config.ts",
"docs:dev": "vitepress dev docs",
"docs:dev:host": "vitepress dev docs --host",
"docs:build": "vitepress build docs",
Expand Down

0 comments on commit 2803c52

Please sign in to comment.