mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
23 lines
528 B
TypeScript
23 lines
528 B
TypeScript
import { test } from 'vitest'
|
|
|
|
test('annotated test', async ({ annotate }) => {
|
|
await annotate('hello world')
|
|
await annotate('second annotation')
|
|
})
|
|
|
|
test('annotated typed test', async ({ annotate }) => {
|
|
await annotate('beware!', 'warning')
|
|
})
|
|
|
|
test('annotated file test', async ({ annotate }) => {
|
|
await annotate('file annotation', {
|
|
path: './fixtures/example.txt'
|
|
})
|
|
})
|
|
|
|
test('annotated image test', async ({ annotate }) => {
|
|
await annotate('image annotation', {
|
|
path: './fixtures/cute-puppy.jpg'
|
|
})
|
|
})
|