AnasSarkiz/rp2040-usb-c-single-axis-dm542t-motion-controller--01a0e89c

A USB‑C RP2040 controller board with external QSPI flash, crystal clock, regulated 3.3/1.1/5 V power, boost-converted motor-driver supply, protected USB and limit inputs, status LEDs, reset/boot switches, and AO3400A MOSFET outputs for stepper-control signals.

Version
0.1.0-prototype.19
License
unset
Stars
0

tooling/regression-tests/props/tests/platedhole-solder-paste-disabled.test.ts

import { expect, test } from "bun:test"
import { platedHoleProps } from "../lib/components/platedhole"

test("plated holes preserve explicit paste intent without changing defaults", () => {
  const hole = { shape: "circle", holeDiameter: 1, outerDiameter: 2 }
  expect(platedHoleProps.parse(hole).solderPasteDisabled).toBeUndefined()
  for (const solderPasteDisabled of [true, false]) {
    expect(
      platedHoleProps.parse({ ...hole, solderPasteDisabled })
        .solderPasteDisabled,
    ).toBe(solderPasteDisabled)
  }
  expect(() =>
    platedHoleProps.parse({ ...hole, solderPasteDisabled: "false" }),
  ).toThrow()
})