AnasSarkiz/magnetic-shutter-remote-r8
A USB‑C rechargeable battery-powered ESP32‑C3 wireless controller with Li‑ion charging, protected 3.3‑V buck‑boost regulation, thermal/safety monitoring, status LEDs, buttons, programming UART, crystal clock, and 2.4‑GHz antenna matching network.
- Version
- 0.4.0-prototype
- License
- unset
- Stars
- 0
scripts/render-regression.ts
import { Resvg } from "@resvg/resvg-js";
for (const filename of [
"repro-pcb-schema-export-pcb",
"repro-symbol-reference-owner-schematic",
]) {
const path = `tooling/core/tests/repros/__snapshots__/${filename}.snap.svg`;
await Bun.write(
`evidence/R2/${filename}.png`,
new Resvg(await Bun.file(path).text(), {
fitTo: { mode: "width", value: 1200 },
})
.render()
.asPng(),
);
}