Skip to content

Commit

Permalink
test: log during collection
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Jan 15, 2025
1 parent 95ab52d commit 32d39b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions test/cli/fixtures/list/math.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { expect, it } from 'vitest'

console.log('logging during collection')

it('1 plus 1', () => {
expect(1 + 1).toBe(2)
})
Expand Down
4 changes: 2 additions & 2 deletions test/cli/test/list.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ test('correctly prints project name and locations in json report', async () => {
"file": "<root>/fixtures/list/math.test.ts",
"projectName": "custom",
"location": {
"line": 3,
"line": 5,
"column": 1
}
},
Expand All @@ -186,7 +186,7 @@ test('correctly prints project name and locations in json report', async () => {
"file": "<root>/fixtures/list/math.test.ts",
"projectName": "custom",
"location": {
"line": 7,
"line": 9,
"column": 1
}
}
Expand Down

0 comments on commit 32d39b1

Please sign in to comment.