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
1234567891011121314151617import { expect, test } from 'vitest'import { runBrowserTests } from './utils'
test('escape inline script', async () => { const result = await runBrowserTests({ root: './fixtures/inline-script', }) expect(result.stderr).toMatchInlineSnapshot(`""`) expect(result.errorTree()).toMatchInlineSnapshot(` { "basic.test.ts": { "provide": "passed", }, } `)})