mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
17 lines
396 B
TypeScript
17 lines
396 B
TypeScript
import { 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",
|
|
},
|
|
}
|
|
`)
|
|
})
|