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 os from 'node:os'import { expect, test } from 'vitest'import { instances, runBrowserTests } from './utils'
// server.host = os.hostname // doesnt work on mac, therefore the test is only run on linuxtest.runIf(os.platform() === 'linux')( 'server-host check dynamic import at insecure context', async () => { const { stdout, stderr } = await runBrowserTests({ root: './fixtures/insecure-context', })
expect(stderr).toBe('') expect(stdout).toReportSummaryTestFiles({ passed: instances.length }) },)