Skip to content

Commit

Permalink
add coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceharrison1984 committed Jul 9, 2023
1 parent 62f7f5b commit 1150ae5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/Schedulely/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"prettier": "prettier --check './src/**.(ts|tsx|js|scss)'",
"test": "vitest run",
"test:watch": "vitest",
"test:ci": "npx jest --ci --json --coverage --testLocationInResults --outputFile=report.json --maxWorkers 1",
"test:ci": "vitest --coverage",
"dev": "ladle serve --stories=__stories__/**.stories.tsx",
"build-ladle": "ladle build"
},
Expand Down Expand Up @@ -51,6 +51,7 @@
"@types/react": "17.0.2",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"@vitest/coverage-v8": "^0.33.0",
"autoprefixer": "^10.4.14",
"barrelsby": "^2.8.0",
"cssnano": "^6.0.1",
Expand Down
3 changes: 3 additions & 0 deletions packages/Schedulely/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import path from 'path';

export default defineConfig({
test: {
coverage: {
reporter: ['text', 'json', 'json-summary'],
},
globals: true,
environment: 'jsdom',
include: ['**/__tests__/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
Expand Down

0 comments on commit 1150ae5

Please sign in to comment.