Skip to content

repro of issue with ts gen #23

repro of issue with ts gen

repro of issue with ts gen #23

Triggered via pull request July 9, 2024 05:50
@seveibarseveibar
opened #12
tsgen
Status Failure
Total duration 13s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 2 warnings
error: expect(received).not.toContain(expected): tests/convert-to-ts/C88224-to-ts.test.ts#L26
Expected to not contain: "milmm" Received: "import { createUseComponent } from \"tscircuit\"\nimport type { CommonLayoutProps } from \"@tscircuit/props\"\n\nconst pinLabels = {\n \"1\": \"AO1\",\n \"2\": \"AO1\",\n \"3\": \"PGND1\",\n \"4\": \"PGND1\",\n \"5\": \"AO2\",\n \"6\": \"AO2\",\n \"7\": \"BO2\",\n \"8\": \"BO2\",\n \"9\": \"PGND2\",\n \"10\": \"PGND2\",\n \"11\": \"BO1\",\n \"12\": \"BO1\",\n \"13\": \"13\",\n \"14\": \"14\",\n \"15\": \"15\",\n \"16\": \"16\",\n \"17\": \"17\",\n \"18\": \"18\",\n \"19\": \"19\",\n \"20\": \"20\",\n \"21\": \"21\",\n \"22\": \"22\",\n \"23\": \"23\",\n \"24\": \"24\"\n} as const\nconst pinNames = Object.values(pinLabels)\n\ninterface Props extends CommonLayoutProps {\n name: string\n}\n\nexport const C88224 = (props: Props) => {\n return (\n <bug\n {...props}\n footprint={<footprint>\n <smtpad\n pcbX=\"NaNmm\"\n pcbY=\"NaNmm\"\n width=\"14.331milmm\"\n height=\"81.969milmm\"\n shape=\"rect\"\n portHints={[\"1\"]}\n />\n <smtpad\n pcbX=\"NaNmm\"\n pcbY=\"NaNmm\"\n width=\"14.331milmm\"\n height=\"81.969milmm\"\n shape=\"rect\"\n portHints={[\"2\"]}\n />\n <smtpad\n pcbX=\"NaNmm\"\n pcbY=\"NaNmm\"\n width=\"14.331milmm\"\n height=\"81.969milmm\"\n shape=\"rect\"\n portHints={[\"3\"]}\n />\n <smtpad\n pcbX=\"NaNmm\"\n pcbY=\"NaNmm\"\n width=\"14.331milmm\"\n height=\"81.969milmm\"\n shape=\"rect\"\n portHints={[\"4\"]}\n />\n <smtpad\n pcbX=\"NaNmm\"\n pcbY=\"NaNmm\"\n width=\"14.331milmm\"\n height=\"81.969milmm\"\n shape=\"rect\"\n portHints={[\"5\"]}\n />\n <smtpad\n pcbX=\"NaNmm\"\n pcbY=\"NaNmm\"\n width=\"14.331milmm\"\n height=\"81.969milmm\"\n shape=\"rect\"\n portHints={[\"6\"]}\n />\n <smtpad\n pcbX=\"NaNmm\"\n pcbY=\"NaNmm\"\n width=\"14.331milmm\"\n height=\"81.969milmm\"\n shape=\"rect\"\n portHints={[\"7\"]}\n />\n <smtpad\n pcbX=\"NaNmm\"\n pcbY=\"NaNmm\"\n width=\"14.331milmm\"\n height=\"81.969milmm\"\n shape=\"rect\"\n portHints={[\"8\"]}\n />\n <smtpad\n pcbX=\"NaNmm\"\n pcbY=\"NaNmm\"\n width=\"14.331milmm\"\n height=\"81.969milmm\"\n shape=\"rect\"\n portHints={[\"9\"]}\n />\n <smtpad\n pcbX=\"NaNmm\"\n pcbY=\"NaNmm\"\n width=\"14.331milmm\"\n height=\"81.969milmm\"\n shape=\"rect\"\n portHints={[\"10\"]}\n />\n <smtpad\n pcbX=\"NaNmm\"\n pcbY=\"NaNmm\"\n width=\"14.331milmm\"\n height=\"81.969milmm\"\n shape=\"rect\"\n portHints={[\"11\"]}\n />\n <smtpad\n pcbX=\"NaNmm\"\n pcbY=\"NaNmm\"\n width=\"14.331milmm\"\n height=\"81.969milmm\"\n shape=\"rect\"\n portHints={[\"12\"]}\n />\n <smtpad\n pcbX=\"NaNmm\"\n pcbY=\"NaNmm\"\n width=\"14.331milmm\"\n height=\"81.969milmm\"\n shape=\"rect\"\n portHints={[\"24\"]}\n />\n <smtpad\n pcbX=\"NaNmm\"\n pcbY=\"NaNmm\"\n width=\"14.331milmm\"\n height=\"81.969milmm\"\n shape=\"rect\"\n portHints={[\"23\"]}\n />\n <smtpad\n pcbX=\"NaNmm\"\n pcbY=\"NaNmm\"\n width=\"14.331milmm\"\n height=\"81.969milmm\"\n shape=\"rect\"\n portHints={[\"22\"]}\n />\n <smtpad\n pcbX=\"NaNmm\"\n pcbY=\"NaNmm\"\n width=\"14.331milmm\"\n height=\"81.969
build
Process completed with exit code 1.
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/