Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Introduce <stampboard /> #637

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Anshgrover23
Copy link
Contributor

/claim #213
Fixes #213

Copy link

vercel bot commented Feb 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tscircuit-core-benchmarks ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 18, 2025 0:18am

Copy link
Contributor

@ShiboSoftwareDev ShiboSoftwareDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's do a snapshot test

Comment on lines +37 to +43
const props = stampboardInstance!._parsedProps as any
expect(props.leftPinCount).toBe(4)
expect(props.rightPinCount).toBe(4)
expect(props.topPins).toEqual(["TP1", "TP2"])
expect(props.bottomPins).toEqual(["BP1", "BP2"])
expect(props.pinPitch).toBe(2)
expect(props.innerHoles).toBe(true)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why are you checking the passing props, check the circuit_json which is being rendered.

@Anshgrover23
Copy link
Contributor Author

let's do a snapshot test

@ShiboSoftwareDev we cannot do a snapshot test because we do not have a symbol for stampboard right now??
Can u tell me how to do that without a symbol.

@ShiboSoftwareDev
Copy link
Contributor

ShiboSoftwareDev commented Feb 18, 2025

@Anshgrover23 I'm talking about a pcb snapshot, doesn't this component implicitly create a footprint?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce <stampboard />
3 participants