-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the bug
Reporters "verbose" does not show timings in output when CI is actived.
Reproduction
vitest.config.js
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
reporters: ['verbose'],
cacheDir: '/tmp/',
logHeapUsage: true,
typecheck: { enabled: true }
}
});
output with timings, e.g. 601ms:
node_modules/.bin/vitest run
Testing types with tsc and vue-tsc is an experimental feature.
Breaking changes might not follow SemVer, please pin Vitest's version when using it.
RUN v1.1.3 /home/tb/code/php_frameworkless/tasks_fe/tests
✓ unit/services/LoginService.test.js (4) 10 MB heap used
✓ test get email 10 MB heap used
✓ test get email invalid token 10 MB heap used
✓ test get email invalid token #2 10 MB heap used
✓ test get email invalid token #3 10 MB heap used
✓ ssr/index-html.test.js (5) 601ms 42 MB heap used
✓ test login page 569ms 41 MB heap used
✓ test tasks list 579ms 41 MB heap used
✓ test create page 584ms 41 MB heap used
✓ test invalid cookie 593ms 42 MB heap used
✓ test unmatched cookie 598ms 42 MB heap used
Test Files 2 passed (2)
Tests 9 passed (9)
Type Errors no errors
Start at 10:07:48
Duration 1.81s (transform 175ms, setup 1ms, collect 772ms, tests 614ms, environment 1ms, prepare 321ms)
output without timings, e.g. 601ms missing:
CI=1 node_modules/.bin/vitest run
Testing types with tsc and vue-tsc is an experimental feature.
Breaking changes might not follow SemVer, please pin Vitest's version when using it.
RUN v1.1.3 /home/tb/code/php_frameworkless/tasks_fe/tests
✓ unit/services/LoginService.test.js > test get email 11 MB heap used
✓ unit/services/LoginService.test.js > test get email invalid token 11 MB heap used
✓ unit/services/LoginService.test.js > test get email invalid token #2 11 MB heap used
✓ unit/services/LoginService.test.js > test get email invalid token #3 11 MB heap used
✓ ssr/index-html.test.js > test login page 41 MB heap used
✓ ssr/index-html.test.js > test tasks list 41 MB heap used
✓ ssr/index-html.test.js > test create page 41 MB heap used
✓ ssr/index-html.test.js > test invalid cookie 42 MB heap used
✓ ssr/index-html.test.js > test unmatched cookie 42 MB heap used
Test Files 2 passed (2)
Tests 9 passed (9)
Type Errors no errors
Start at 10:07:54
Duration 1.75s (transform 189ms, setup 0ms, collect 876ms, tests 503ms, environment 1ms, prepare 317ms)
System Info
node --version v20.10.0
npm list
├── @types/node@20.10.7
├── jsdom@23.2.0
└── vitest@1.1.3Used Package Manager
npm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request