mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
7 lines
353 B
TypeScript
7 lines
353 B
TypeScript
const PORT = import.meta.hot ? (import.meta.env.VITE_PORT || '51204') : location.port
|
|
const HOST = [location.hostname, PORT].filter(Boolean).join(':')
|
|
export const ENTRY_URL = `${
|
|
location.protocol === 'https:' ? 'wss:' : 'ws:'
|
|
}//${HOST}/__vitest_api__?token=${(window as any).VITEST_API_TOKEN}`
|
|
export const isReport = !!window.HTML_REPORT_METADATA
|