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.
TypeScript
at release
12345678910import { test, expect } from 'vitest';
test('basic', async () => { const div = document.createElement('div') div.textContent = ' Vitest' document.body.appendChild(div) expect(document.body.textContent).toContain('HELLO WORLD') expect(document.body.textContent).toContain('Vitest')})