···11+import os from 'node:os'
22+import { expect, test } from 'vitest'
33+import { instances, runBrowserTests } from './utils'
44+55+// server.host = os.hostname // doesnt work on mac, therefore the test is only run on linux
66+test.runIf(os.platform() === 'linux')('server-host check dynamic import at insecure context', async () => {
77+ const { stdout, stderr } = await runBrowserTests({
88+ root: './fixtures/insecure-context',
99+ })
1010+1111+ expect(stderr).toBe('')
1212+ expect(stdout).toReportSummaryTestFiles({ passed: instances.length })
1313+})