Skip to content

Commit

Permalink
fix(vitest): better config
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanGerbeth committed Nov 28, 2024
1 parent 9b69b72 commit 7df804a
Show file tree
Hide file tree
Showing 7 changed files with 138 additions and 14 deletions.
1 change: 0 additions & 1 deletion .cache/vitest/results.json

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ node_modules

/coverage
/.github_old
/.cache
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"formulahendry.auto-rename-tag",
"naumovs.color-highlight",
"humao.rest-client",
"techer.open-in-browser"
"techer.open-in-browser",
"vitest.explorer"
]
}
132 changes: 127 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@
"release": "npm run release --workspaces",
"release:proof": "npx dotenv-cli -- npm run release -- -- --dry-run",
"test": "vitest",
"test:observables": "vitest --project packages/observables",
"test:operators": "vitest --project packages/operators",
"test:playground": "vitest --project packages/playground",
"test:ui": "vitest --ui",
"test:project:observables": "vitest --project packages/observables",
"test:project:operators": "vitest --project packages/operators",
"test:project:playground": "vitest --project packages/playground",
"coverage": "vitest run --coverage"
},
"workspaces": [
Expand All @@ -40,21 +41,22 @@
"@semantic-release/npm": "12.0.1",
"@semantic-release/release-notes-generator": "14.0.1",
"@vitest/coverage-v8": "2.1.5",
"@vitest/eslint-plugin": "1.1.10",
"@vitest/ui": "^2.1.5",
"commitlint": "19.6.0",
"eslint": "9.15.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-no-secrets": "1.1.2",
"eslint-plugin-perfectionist": "4.0.3",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-security": "3.0.1",
"@vitest/eslint-plugin": "1.1.10",
"fetch-mock": "12.2.0",
"happy-dom": "15.11.6",
"husky": "9.1.7",
"lint-staged": "15.2.10",
"prettier": "3.3.3",
"semantic-release": "24.2.0",
"semantic-release-monorepo": "8.0.2",
"vitest": "2.1.5"
"vitest": "^2.1.5"
}
}
2 changes: 1 addition & 1 deletion packages/operators/vitest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineProject, configDefaults } from 'vitest/config';
import { defineProject } from 'vitest/config';

export default defineProject({
cacheDir: '../.cache/vitest-operators',
Expand Down
1 change: 0 additions & 1 deletion vitest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { defineConfig, configDefaults } from 'vitest/config';
export default defineConfig({
test: {
cacheDir: './.cache/vitest',

coverage: {
provider: 'v8',
reporter: ['text', 'json', 'lcov', 'html'],
Expand Down

0 comments on commit 7df804a

Please sign in to comment.