Files
kid_dash/webapp/test/public-hmr.test.mjs
2026-09-14 22:40:15 -04:00

12 lines
436 B
JavaScript

import test from 'node:test'
import assert from 'node:assert/strict'
import { readFile } from 'node:fs/promises'
const viteConfig = await readFile(new URL('../vite.config.js', import.meta.url), 'utf8')
test('routes HMR through the public HTTPS development host', () => {
assert.match(viteConfig, /host:\s*'elias\.reynafamily\.com'/)
assert.match(viteConfig, /protocol:\s*'wss'/)
assert.match(viteConfig, /clientPort:\s*443/)
})