Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
Something went wrong. Try again.
1234567891011121314151617181920import { expect, test } from 'vitest'
test('pass', async () => {})
test('fail', async () => { expect(1).toBe(2)})
test('annotation', async ({ annotate, task }) => { await annotate('annotation-body', { body: 'test-body-content', bodyEncoding: 'utf-8', contentType: 'text/plain', }) await annotate('annotation-path', { path: `./resources/test.txt`, })})