Skip to content

Commit 99764b6

Browse files
authored
chore: trim the vitest config comments
1 parent cdcd43b commit 99764b6

1 file changed

Lines changed: 4 additions & 18 deletions

File tree

‎vitest.config.mts‎

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,31 @@
11
import { defineConfig } from 'vitest/config';
22

3-
/**
4-
* For a detailed explanation of each option, visit:
5-
* https://vitest.dev/config/
6-
*/
73
export default defineConfig({
84
test: {
9-
// Vitest enables watch mode by default. We disable it here, so it can be
10-
// explicitly enabled with `yarn test:watch`.
5+
// Opt in with `yarn test:watch`.
116
watch: false,
127

13-
// The files to include in the test run.
148
include: ['src/**/*.test.ts'],
15-
16-
// Reduce the default test timeout from 5s to 2.5s
179
testTimeout: 2500,
1810

19-
// Reset mocks between tests, so a mocked implementation cannot leak from
20-
// one test into the next.
11+
// Keep mocks from leaking between tests.
2112
mockReset: true,
2213
restoreMocks: true,
2314

2415
passWithNoTests: true,
2516

2617
coverage: {
27-
// Enabled with `--coverage`, see the `test` script.
18+
// Enabled with `--coverage` in the `test` script.
2819
enabled: false,
2920

3021
provider: 'v8',
31-
32-
// The files to include in the coverage report.
3322
include: ['src/**/*.ts'],
34-
35-
// The files to exclude from the coverage report.
3623
exclude: ['src/**/*.test.ts'],
37-
3824
reporter: ['text', 'html', 'json-summary'],
39-
4025
reportsDirectory: 'coverage',
4126

4227
thresholds: {
28+
// Raises the thresholds in this file when coverage improves.
4329
autoUpdate: true,
4430
branches: 62.31,
4531
functions: 62.25,

0 commit comments

Comments
 (0)