Skip to content

Enhance data source methods to unwrap 'item' property from API responses #309

Enhance data source methods to unwrap 'item' property from API responses

Enhance data source methods to unwrap 'item' property from API responses #309

Triggered via push February 1, 2026 03:15
Status Failure
Total duration 3m 53s
Artifacts
Changeset Release
3m 50s
Changeset Release
Fit to window
Zoom out
Zoom in

Annotations

9 errors
Changeset Release
Process completed with exit code 1.
Changeset Release
@object-ui/example-msw-object-form#test: command (/home/runner/work/objectui/objectui/examples/msw-object-form) /home/runner/setup-pnpm/node_modules/.bin/pnpm run test exited (1)
src/__tests__/ServerDefinitions.test.tsx > Server-Driven Definitions > Component Composition from Server > should render complex page composition: examples/msw-object-form/src/__tests__/ServerDefinitions.test.tsx#L307
TestingLibraryElementError: Found multiple elements with the text: Active Here are the matching elements: Ignored nodes: comments, script, style <h3 class="font-semibold mb-2" > Active </h3> Ignored nodes: comments, script, style <div class="tracking-tight text-sm font-medium" > Active </div> (If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)). Ignored nodes: comments, script, style <body> <div> <div class="min-h-screen bg-gray-50" data-obj-type="div" > <div class="header bg-white shadow" data-obj-type="div" > <div class="container mx-auto p-4" data-obj-type="div" > CRM Dashboard </div> </div> <div class="container mx-auto p-6" data-obj-type="div" > <div class="grid" columns="4" data-obj-type="dashboard" gap="4" style="grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem;" widgets="[object Object],[object Object]" > <div class="border rounded-lg p-4 bg-card text-card-foreground shadow-sm" style="grid-column: span 1; grid-row: span 1;" > <h3 class="font-semibold mb-2" > Total Contacts </h3> <div class="rounded-lg border bg-card text-card-foreground shadow-sm h-full" data-obj-type="metric" schema="[object Object]" > <div class="p-6 flex flex-row items-center justify-between space-y-0 pb-2" > <div class="tracking-tight text-sm font-medium" > Contacts </div> </div> <div class="p-6 pt-0" > <div class="text-2xl font-bold" > 3 </div> </div> </div> </div> <div class="border rounded-lg p-4 bg-card text-card-foreground shadow-sm" style="grid-column: span 1; grid-row: span 1;" > <h3 class="font-semibold mb-2" > Active </h3> <div class="rounded-lg border bg-card text-card-foreground shadow-sm h-full" data-obj-type="metric" schema="[object Object]" > <div class="p-6 flex flex-row items-center justify-between space-y-0 pb-2" > <div class="tracking-tight text-sm font-medium" > Active </div> </div> <div class="p-6 pt-0" > <div class="text-2xl font-bold" > 2 </div> </div> </div> </div> </div> </div> </div> </div> </body> ❯ Object.getElementError ../../node_modules/.pnpm/@testing-library+dom@10.4.1/node_modules/@testing-library/dom/dist/config.js:37:19 ❯ getElementError ../../node_modules/.pnpm/@testing-library+dom@10.4.1/node_modules/@testing-library/dom/dist/query-helpers.js:20:35 ❯ getMultipleElementsFoundError ../../node_modules/.pnpm/@testing-library+dom@10.4.1/node_modules/@testing-library/dom/dist/query-helpers.js:23:10 ❯ ../../node_modules/.pnpm/@testing-library+dom@10.4.1/node_modules/@testing-library/dom/dist/query-helpers.js:55:13 ❯ ../../node_modules/.pnpm/@testing-library+dom@10.4.1/node_modules/@testing-library/dom/dist/query-helpers.js:95:19 ❯ src/__tests__/ServerDefinitions.test.tsx:307:21
src/__tests__/ObjectFormUnit.test.tsx > ObjectForm Unit Tests > Field Types > should render different field types correctly: examples/msw-object-form/src/__tests__/ObjectFormUnit.test.tsx#L278
AssertionError: expected 'text' to be 'number' // Object.is equality Expected: "number" Received: "text" ❯ src/__tests__/ObjectFormUnit.test.tsx:278:34
src/__tests__/ObjectFormUnit.test.tsx > ObjectForm Unit Tests > Edit Mode > should update contact successfully: examples/msw-object-form/src/__tests__/ObjectFormUnit.test.tsx#L239
AssertionError: expected undefined to be 'John Doe Updated' // Object.is equality - Expected: "John Doe Updated" + Received: undefined ❯ src/__tests__/ObjectFormUnit.test.tsx:239:27
src/__tests__/ObjectFormUnit.test.tsx > ObjectForm Unit Tests > Create Mode > should apply default values from schema: examples/msw-object-form/src/__tests__/ObjectFormUnit.test.tsx#L167
AssertionError: expected undefined to be 5 // Object.is equality - Expected: 5 + Received: undefined ❯ src/__tests__/ObjectFormUnit.test.tsx:167:31
src/__tests__/ObjectFormUnit.test.tsx > ObjectForm Unit Tests > Create Mode > should create a contact successfully: examples/msw-object-form/src/__tests__/ObjectFormUnit.test.tsx#L128
AssertionError: expected undefined to be 'Test User' // Object.is equality - Expected: "Test User" + Received: undefined ❯ src/__tests__/ObjectFormUnit.test.tsx:128:27
src/__tests__/Dashboard.test.tsx > Dashboard MSW Integration > Dashboard Layout > should render dashboard with widgets: examples/msw-object-form/src/__tests__/Dashboard.test.tsx#L56
TestingLibraryElementError: Found multiple elements with the text: Total Contacts Here are the matching elements: Ignored nodes: comments, script, style <h3 class="font-semibold mb-2" > Total Contacts </h3> Ignored nodes: comments, script, style <div class="tracking-tight text-sm font-medium" > Total Contacts </div> (If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)). Ignored nodes: comments, script, style <body> <div> <div class="grid" style="grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;" > <div class="border rounded-lg p-4 bg-card text-card-foreground shadow-sm" style="grid-column: span 1; grid-row: span 1;" > <h3 class="font-semibold mb-2" > Total Contacts </h3> <div class="rounded-lg border bg-card text-card-foreground shadow-sm h-full" data-obj-type="metric" schema="[object Object]" > <div class="p-6 flex flex-row items-center justify-between space-y-0 pb-2" > <div class="tracking-tight text-sm font-medium" > Total Contacts </div> </div> <div class="p-6 pt-0" > <div class="text-2xl font-bold" > 3 </div> </div> </div> </div> <div class="border rounded-lg p-4 bg-card text-card-foreground shadow-sm" style="grid-column: span 1; grid-row: span 1;" > <h3 class="font-semibold mb-2" > Active Contacts </h3> <div class="rounded-lg border bg-card text-card-foreground shadow-sm h-full" data-obj-type="metric" schema="[object Object]" > <div class="p-6 flex flex-row items-center justify-between space-y-0 pb-2" > <div class="tracking-tight text-sm font-medium" > Active </div> </div> <div class="p-6 pt-0" > <div class="text-2xl font-bold" > 2 </div> </div> </div> </div> </div> </div> </body> ❯ Object.getElementError ../../node_modules/.pnpm/@testing-library+dom@10.4.1/node_modules/@testing-library/dom/dist/config.js:37:19 ❯ getElementError ../../node_modules/.pnpm/@testing-library+dom@10.4.1/node_modules/@testing-library/dom/dist/query-helpers.js:20:35 ❯ getMultipleElementsFoundError ../../node_modules/.pnpm/@testing-library+dom@10.4.1/node_modules/@testing-library/dom/dist/query-helpers.js:23:10 ❯ ../../node_modules/.pnpm/@testing-library+dom@10.4.1/node_modules/@testing-library/dom/dist/query-helpers.js:55:13 ❯ ../../node_modules/.pnpm/@testing-library+dom@10.4.1/node_modules/@testing-library/dom/dist/query-helpers.js:95:19 ❯ src/__tests__/Dashboard.test.tsx:56:21