diff --git a/lib/components/primitive-components/Group/Group.ts b/lib/components/primitive-components/Group/Group.ts index 27262366..73c119d5 100644 --- a/lib/components/primitive-components/Group/Group.ts +++ b/lib/components/primitive-components/Group/Group.ts @@ -1,5 +1,6 @@ import { groupProps, + subcircuitGroupProps, type GroupProps, type SubcircuitGroupProps, } from "@tscircuit/props" @@ -38,7 +39,7 @@ export class Group = typeof groupProps> get config() { return { - zodProps: groupProps as unknown as Props, + zodProps: subcircuitGroupProps as unknown as Props, componentName: "Group", } } diff --git a/tests/examples/__snapshots__/example16-offset-outline-without-output-defined-pcb.snap.svg b/tests/examples/__snapshots__/example16-offset-outline-without-output-defined-pcb.snap.svg new file mode 100644 index 00000000..35389996 --- /dev/null +++ b/tests/examples/__snapshots__/example16-offset-outline-without-output-defined-pcb.snap.svg @@ -0,0 +1,13 @@ + \ No newline at end of file diff --git a/tests/features/__snapshots__/remote-autorouting-6-cloud-autorouting-on-group-pcb.snap.svg b/tests/features/__snapshots__/remote-autorouting-6-cloud-autorouting-on-group-pcb.snap.svg new file mode 100644 index 00000000..113d0cf0 --- /dev/null +++ b/tests/features/__snapshots__/remote-autorouting-6-cloud-autorouting-on-group-pcb.snap.svg @@ -0,0 +1,13 @@ + \ No newline at end of file diff --git a/tests/features/remote-autorouting-6-cloud-autorouting-on-group.test.tsx b/tests/features/remote-autorouting-6-cloud-autorouting-on-group.test.tsx new file mode 100644 index 00000000..cbd57200 --- /dev/null +++ b/tests/features/remote-autorouting-6-cloud-autorouting-on-group.test.tsx @@ -0,0 +1,29 @@ +import { test, expect } from "bun:test" +import { getTestFixture } from "../fixtures/get-test-fixture" +import { getTestAutoroutingServer } from "tests/fixtures/get-test-autorouting-server" + +test("remote-autorouter-6 cloud autorouting on group", async () => { + if (process.env.CI) return + const { circuit } = getTestFixture() + + // Create a basic circuit that needs routing + circuit.add( + + + + + , + ) + + await circuit.renderUntilSettled() + + // Verify routing request was made + expect(circuit.selectAll("trace").length).toBeGreaterThan(0) + expect(circuit).toMatchPcbSnapshot(import.meta.path) +})