Skip to content

Commit 7df804a

Browse files
fix(vitest): better config
1 parent 9b69b72 commit 7df804a

File tree

7 files changed

+138
-14
lines changed

7 files changed

+138
-14
lines changed

.cache/vitest/results.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ node_modules
44

55
/coverage
66
/.github_old
7+
/.cache

.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"formulahendry.auto-rename-tag",
1515
"naumovs.color-highlight",
1616
"humao.rest-client",
17-
"techer.open-in-browser"
17+
"techer.open-in-browser",
18+
"vitest.explorer"
1819
]
1920
}

package-lock.json

Lines changed: 127 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@
2121
"release": "npm run release --workspaces",
2222
"release:proof": "npx dotenv-cli -- npm run release -- -- --dry-run",
2323
"test": "vitest",
24-
"test:observables": "vitest --project packages/observables",
25-
"test:operators": "vitest --project packages/operators",
26-
"test:playground": "vitest --project packages/playground",
24+
"test:ui": "vitest --ui",
25+
"test:project:observables": "vitest --project packages/observables",
26+
"test:project:operators": "vitest --project packages/operators",
27+
"test:project:playground": "vitest --project packages/playground",
2728
"coverage": "vitest run --coverage"
2829
},
2930
"workspaces": [
@@ -40,21 +41,22 @@
4041
"@semantic-release/npm": "12.0.1",
4142
"@semantic-release/release-notes-generator": "14.0.1",
4243
"@vitest/coverage-v8": "2.1.5",
44+
"@vitest/eslint-plugin": "1.1.10",
45+
"@vitest/ui": "^2.1.5",
4346
"commitlint": "19.6.0",
4447
"eslint": "9.15.0",
4548
"eslint-config-prettier": "9.1.0",
4649
"eslint-plugin-no-secrets": "1.1.2",
4750
"eslint-plugin-perfectionist": "4.0.3",
4851
"eslint-plugin-prettier": "5.2.1",
4952
"eslint-plugin-security": "3.0.1",
50-
"@vitest/eslint-plugin": "1.1.10",
5153
"fetch-mock": "12.2.0",
5254
"happy-dom": "15.11.6",
5355
"husky": "9.1.7",
5456
"lint-staged": "15.2.10",
5557
"prettier": "3.3.3",
5658
"semantic-release": "24.2.0",
5759
"semantic-release-monorepo": "8.0.2",
58-
"vitest": "2.1.5"
60+
"vitest": "^2.1.5"
5961
}
6062
}

packages/operators/vitest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defineProject, configDefaults } from 'vitest/config';
1+
import { defineProject } from 'vitest/config';
22

33
export default defineProject({
44
cacheDir: '../.cache/vitest-operators',

vitest.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { defineConfig, configDefaults } from 'vitest/config';
33
export default defineConfig({
44
test: {
55
cacheDir: './.cache/vitest',
6-
76
coverage: {
87
provider: 'v8',
98
reporter: ['text', 'json', 'lcov', 'html'],

0 commit comments

Comments
 (0)