Skip to content

Commit

Permalink
Merge branch 'main' into renovate/major-eslint-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
meza authored Jan 11, 2024
2 parents a93c15a + fec9802 commit bac5193
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"prepack": "npmignore --auto",
"prepare": "lefthook install",
"release": "semantic-release",
"report": "vitest --coverage",
"report": "vitest run --coverage",
"storybook": "run-s storybook:serve",
"storybook:build": "storybook build",
"storybook:deploy": "gh-pages -d storybook-static -m 'chore(deploy): storybook to gh-pages'",
Expand Down
21 changes: 11 additions & 10 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,9 @@ if (!isCi) {
export default defineConfig({
plugins: [react(), tsconfigPaths()],
test: {
globals: true,
isolate: true,
environment: 'jsdom',
cache: {
dir: '.cache/.vitest'
},
setupFiles: ['./vitest.setup.ts'],
dir: 'src',
testTimeout: 10000,
watch: false,
outputFile: 'reports/junit.xml',
reporters: testReporters,
coverage: {
include: ['src/**/*.ts', 'src/**/*.tsx'],
exclude: [
Expand All @@ -43,6 +34,7 @@ export default defineConfig({
'testUtils/**.*'
],
all: true,
provider: 'v8',
reportsDirectory: './reports/coverage/unit',
reporter: coverageReporters,
thresholds: {
Expand All @@ -51,7 +43,16 @@ export default defineConfig({
functions: 100,
lines: 100
}
}
},
dir: 'src',
environment: 'jsdom',
globals: true,
isolate: true,
outputFile: 'reports/junit.xml',
reporters: testReporters,
setupFiles: ['./vitest.setup.ts'],
testTimeout: 10000,
watch: false
},
resolve: {
alias: {
Expand Down

0 comments on commit bac5193

Please sign in to comment.