Skip to content

Commit

Permalink
ci: enable coverage in vitest on CI (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe authored Jan 29, 2024
1 parent 19952a9 commit b29e215
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"build": "vue-tsc && vite build",
"type-check": "vue-tsc --noEmit --composite false",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts,.mdx --fix --ignore-path .gitignore",
"format": "prettier --write .storybook src/ *.json *.cjs",
"format:check": "prettier --list-different .storybook src/ *.json *.cjs",
"format": "prettier --write .storybook src/ *.json *.cjs *.mts",
"format:check": "prettier --list-different .storybook src/ *.json *.cjs *.mts",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
},
Expand Down
10 changes: 4 additions & 6 deletions vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,15 @@ export default mergeConfig(
},
coverage: {
provider: 'istanbul',
include: [
'src/lib/**/*.ts',
'src/components/**/*.{vue,ts}',
],
exclude: ["**/*.spec.ts", "**/*.stories.ts"]
reporter: ['text', 'json', 'html'],
include: ['src/lib/**/*.ts', 'src/components/**/*.{vue,ts}'],
exclude: ['**/*.spec.ts', '**/*.stories.ts']
},
environment: 'jsdom',
exclude: [...configDefaults.exclude, 'e2e/*'],
root: fileURLToPath(new URL('./', import.meta.url)),
testTransformMode: {
web: ["**/*.{jsx,tsx}"]
web: ['**/*.{jsx,tsx}']
},
testTimeout: 10000
}
Expand Down

0 comments on commit b29e215

Please sign in to comment.