daily backup 2026-09-14

This commit is contained in:
Adolfo Reyna
2026-09-14 22:40:15 -04:00
parent 30f9148adb
commit 4fe483f68f
12 changed files with 199 additions and 16 deletions
@@ -0,0 +1,14 @@
import test from 'node:test'
import assert from 'node:assert/strict'
import { readFile } from 'node:fs/promises'
const css = await readFile(new URL('../src/index.css', import.meta.url), 'utf8')
test('keeps the native screen size ahead of inline app dimensions', () => {
assert.match(css, /\.kiddos-screen\s*\{[^}]*width:\s*800px\s*!important/s)
assert.match(css, /\.kiddos-screen\s*\{[^}]*height:\s*480px\s*!important/s)
})
test('uses the requested 1.6 zoom for the browser preview', () => {
assert.match(css, /\.kiddos-screen\s*\{[^}]*zoom:\s*1\.6/s)
})
+18
View File
@@ -0,0 +1,18 @@
import test from 'node:test'
import assert from 'node:assert/strict'
import { readFile } from 'node:fs/promises'
const css = await readFile(new URL('../src/index.css', import.meta.url), 'utf8')
test('defines a centered 800 by 480 KiddOs screen frame', () => {
assert.match(css, /\.kiddos-stage\s*\{[^}]*place-items:\s*center/s)
assert.match(css, /\.kiddos-screen\s*\{[^}]*width:\s*800px/s)
assert.match(css, /\.kiddos-screen\s*\{[^}]*height:\s*480px/s)
assert.match(css, /\.kiddos-screen\s*\{[^}]*border:/s)
})
test('uses the full physical display without a desktop frame at 800 by 480', () => {
assert.match(css, /@media\s*\(max-width:\s*800px\),\s*\(max-height:\s*480px\)/s)
assert.match(css, /\.kiddos-screen\s*\{[^}]*width:\s*100vw/s)
assert.match(css, /\.kiddos-screen\s*\{[^}]*height:\s*100vh/s)
})
+11
View File
@@ -0,0 +1,11 @@
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/)
})