mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
14 lines
518 B
TypeScript
14 lines
518 B
TypeScript
import 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 linux
|
|
test.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 })
|
|
})
|