Skip to content

Commit 4f01de1

Browse files
committed
test: pass down a function
1 parent 6242aa2 commit 4f01de1

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { test } from 'vitest';
22

3-
test('passes')
3+
test('passes', () => {})
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { it } from 'vitest'
22

3-
it('test without assertions')
3+
it('test without assertions', () => {})

test/cli/test/group-order.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { runInlineTests } from '../../test-utils'
33

44
test('tests run according to the group order', async () => {
55
const { stdout, stderr } = await runInlineTests({
6-
'example.1.test.ts': `test('1')`,
7-
'example.2.test.ts': `test('2')`,
8-
'example.2-2.test.ts': `test('2-2')`,
9-
'example.3.test.ts': `test('3')`,
6+
'example.1.test.ts': `test('1', () => {})`,
7+
'example.2.test.ts': `test('2', () => {})`,
8+
'example.2-2.test.ts': `test('2-2', () => {})`,
9+
'example.3.test.ts': `test('3', () => {})`,
1010
}, {
1111
globals: true,
1212
// run projects in the opposite order!

test/reporters/fixtures/long-loading-task.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ import { test } from 'vitest'
22

33
await new Promise(r => setTimeout(r, 500))
44

5-
test('works')
5+
test('works', () => {})

0 commit comments

Comments
 (0)