···248248An example with `--includeTaskLocation`:
249249250250```bash
251251-✓ __tests__/file1.test.ts:2:1 > first test file > 2 + 2 should equal 4 1ms
252252-✓ __tests__/file1.test.ts:3:1 > first test file > 4 - 2 should equal 2 1ms
253253-✓ __tests__/file2.test.ts:2:1 > second test file > 1 + 1 should equal 2 1ms
254254-✓ __tests__/file2.test.ts:3:1 > second test file > 2 - 1 should equal 1 1ms
251251+✓ __tests__/file1.test.ts:2 > first test file > 2 + 2 should equal 4 1ms
252252+✓ __tests__/file1.test.ts:3 > first test file > 4 - 2 should equal 2 1ms
253253+✓ __tests__/file2.test.ts:2 > second test file > 1 + 1 should equal 2 1ms
254254+✓ __tests__/file2.test.ts:3 > second test file > 2 - 1 should equal 1 1ms
255255256256 Test Files 2 passed (2)
257257 Tests 4 passed (4)
+1-1
test/e2e/test/no-module-runner.test.ts
···517517 "
518518 ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
519519520520- FAIL in-source.ts:12:3 > works
520520+ FAIL in-source.ts:12 > works
521521 Error: test throws correctly
522522 ❯ <anonymous> in-source.ts:13:11
523523 11|
···135135 })
136136137137 expect(trimReporterOutput(stdout)).toMatchInlineSnapshot(`
138138- "✓ fixtures/reporters/verbose/example-1.test.ts:3:1 > test pass in root [...]ms
139139- ↓ fixtures/reporters/verbose/example-1.test.ts:5:6 > test skip in root
140140- ✓ fixtures/reporters/verbose/example-1.test.ts:8:3 > suite in root > test pass in 1. suite #1 [...]ms
141141- ✓ fixtures/reporters/verbose/example-1.test.ts:10:3 > suite in root > test pass in 1. suite #2 [...]ms
142142- ✓ fixtures/reporters/verbose/example-1.test.ts:13:5 > suite in root > suite in suite > test pass in nested suite #1 [...]ms
143143- ✓ fixtures/reporters/verbose/example-1.test.ts:15:5 > suite in root > suite in suite > test pass in nested suite #2 [...]ms
144144- × fixtures/reporters/verbose/example-1.test.ts:18:7 > suite in root > suite in suite > suite in nested suite > test failure in 2x nested suite [...]ms
138138+ "✓ fixtures/reporters/verbose/example-1.test.ts:3 > test pass in root [...]ms
139139+ ↓ fixtures/reporters/verbose/example-1.test.ts:5 > test skip in root
140140+ ✓ fixtures/reporters/verbose/example-1.test.ts:8 > suite in root > test pass in 1. suite #1 [...]ms
141141+ ✓ fixtures/reporters/verbose/example-1.test.ts:10 > suite in root > test pass in 1. suite #2 [...]ms
142142+ ✓ fixtures/reporters/verbose/example-1.test.ts:13 > suite in root > suite in suite > test pass in nested suite #1 [...]ms
143143+ ✓ fixtures/reporters/verbose/example-1.test.ts:15 > suite in root > suite in suite > test pass in nested suite #2 [...]ms
144144+ × fixtures/reporters/verbose/example-1.test.ts:18 > suite in root > suite in suite > suite in nested suite > test failure in 2x nested suite [...]ms
145145 → expected 'should fail' to be 'as expected' // Object.is equality
146146- ↓ fixtures/reporters/verbose/example-1.test.ts:26:3 > suite skip in root > test 1.3
147147- ↓ fixtures/reporters/verbose/example-1.test.ts:29:5 > suite skip in root > suite in suite > test in nested suite
148148- ↓ fixtures/reporters/verbose/example-1.test.ts:31:5 > suite skip in root > suite in suite > test failure in nested suite of skipped suite
149149- ✓ fixtures/reporters/verbose/example-2.test.ts:3:1 > test 0.1 [...]ms
150150- ↓ fixtures/reporters/verbose/example-2.test.ts:5:6 > test 0.2
151151- ✓ fixtures/reporters/verbose/example-2.test.ts:8:3 > suite 1.1 > test 1.1 [...]ms"
146146+ ↓ fixtures/reporters/verbose/example-1.test.ts:26 > suite skip in root > test 1.3
147147+ ↓ fixtures/reporters/verbose/example-1.test.ts:29 > suite skip in root > suite in suite > test in nested suite
148148+ ↓ fixtures/reporters/verbose/example-1.test.ts:31 > suite skip in root > suite in suite > test failure in nested suite of skipped suite
149149+ ✓ fixtures/reporters/verbose/example-2.test.ts:3 > test 0.1 [...]ms
150150+ ↓ fixtures/reporters/verbose/example-2.test.ts:5 > test 0.2
151151+ ✓ fixtures/reporters/verbose/example-2.test.ts:8 > suite 1.1 > test 1.1 [...]ms"
152152 `)
153153})
154154
···1212`;
13131414exports[`should fail > typecheck files 2`] = `
1515-" FAIL fail.test-d.ts:7:1 > nested suite
1515+" FAIL fail.test-d.ts:7 > nested suite
1616TypeCheckError: This expression is not callable. Type 'ExpectVoid<number>' has no call signatures.
1717 ❯ fail.test-d.ts:15:19
1818 13| })
···2323`;
24242525exports[`should fail > typecheck files 3`] = `
2626-" FAIL expect-error.test-d.ts:4:1 > failing test with expect-error
2626+" FAIL expect-error.test-d.ts:4 > failing test with expect-error
2727TypeCheckError: Unused '@ts-expect-error' directive.
2828 ❯ expect-error.test-d.ts:5:3
2929 3| //
···3434`;
35353636exports[`should fail > typecheck files 4`] = `
3737-" FAIL fail.test-d.ts:3:1 > failing test
3737+" FAIL fail.test-d.ts:3 > failing test
3838TypeCheckError: Type 'string' does not satisfy the constraint '"Expected string, Actual number"'.
3939 ❯ fail.test-d.ts:4:33
4040 2|
···4545`;
46464747exports[`should fail > typecheck files 5`] = `
4848-" FAIL fail.test-d.ts:9:5 > nested suite > nested 2 > failing test 2
4848+" FAIL fail.test-d.ts:9 > nested suite > nested 2 > failing test 2
4949TypeCheckError: This expression is not callable. Type 'ExpectVoid<number>' has no call signatures.
5050 ❯ fail.test-d.ts:10:23
5151 8| describe('nested 2', () => {
···5656`;
57575858exports[`should fail > typecheck files 6`] = `
5959-" FAIL fail.test-d.ts:9:5 > nested suite > nested 2 > failing test 2
5959+" FAIL fail.test-d.ts:9 > nested suite > nested 2 > failing test 2
6060TypeCheckError: This expression is not callable. Type 'ExpectUndefined<number>' has no call signatures.
6161 ❯ fail.test-d.ts:11:23
6262 9| test('failing test 2', () => {
···6767`;
68686969exports[`should fail > typecheck files 7`] = `
7070-" FAIL js-fail.test-d.js:5:1 > js test fails
7070+" FAIL js-fail.test-d.js:5 > js test fails
7171TypeCheckError: This expression is not callable. Type 'ExpectArray<number>' has no call signatures.
7272 ❯ js-fail.test-d.js:6:19
7373 4|
···7878`;
79798080exports[`should fail > typecheck files 8`] = `
8181-" FAIL node-types.test-d.ts:3:1 > buffer is not available
8181+" FAIL node-types.test-d.ts:3 > buffer is not available
8282TypeCheckError: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try \`npm i --save-dev @types/node\` and then add 'node' to the types field in your tsconfig.
8383 ❯ node-types.test-d.ts:4:3
8484 2|
···8989`;
90909191exports[`should fail > typecheck files 9`] = `
9292-" FAIL only.test-d.ts:3:1 > failing test
9292+" FAIL only.test-d.ts:3 > failing test
9393TypeCheckError: Type 'string' does not satisfy the constraint '"Expected string, Actual number"'.
9494 ❯ only.test-d.ts:4:33
9595 2|
+1-1
packages/vitest/src/node/reporters/base.ts
···307307308308 let name = test.file.name
309309 if (test.location) {
310310- name += c.dim(`:${test.location.line}:${test.location.column}`)
310310+ name += c.dim(`:${test.location.line}`)
311311 }
312312 name += separator
313313 name += getTestName(test, separator)
+1-1
packages/vitest/src/node/reporters/verbose.ts
···26262727 title += test.module.task.name
2828 if (test.location) {
2929- title += c.dim(`:${test.location.line}:${test.location.column}`)
2929+ title += c.dim(`:${test.location.line}`)
3030 }
3131 title += separator
3232