Skip to content

Commit

Permalink
fix vitest config
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy committed Nov 7, 2023
1 parent 592fb27 commit b3b8269
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"clean": "rimraf dist .turbo",
"build": "vite build",
"typecheck": "vue-tsc --declaration --emitDeclarationOnly",
"test": "vitest run --coverage",
"test": "vitest run",
"test:dev": "vitest",
"build:storybook": "storybook build",
"storybook": "storybook dev -p 6006",
Expand Down
11 changes: 6 additions & 5 deletions packages/design-system/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ export const vitestConfig = defineVitestConfig({
globals: true,
environment: 'jsdom',
setupFiles: ['./src/__tests__/setup.ts'],
coverage:
process.env.COVERAGE_ENABLED === 'true'
? {
...(process.env.COVERAGE_ENABLED === 'true'
? {
coverage: {
provider: 'v8',
reporter: require('../../jest.config.js').coverageReporters,
all: true,
}
: undefined,
},
}
: {}),
css: {
modules: {
classNameStrategy: 'non-scoped',
Expand Down
2 changes: 1 addition & 1 deletion packages/editor-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"lintfix": "eslint src --ext .js,.ts,.vue --fix",
"format": "prettier --write . --ignore-path ../../.prettierignore",
"serve": "cross-env VUE_APP_URL_BASE_API=http://localhost:5678/ vite --host 0.0.0.0 --port 8080 dev",
"test": "vitest run --coverage",
"test": "vitest run",
"test:dev": "vitest"
},
"dependencies": {
Expand Down

0 comments on commit b3b8269

Please sign in to comment.