chore: Fully restored drinks sync and codebase cleanup #25
Annotations
3 errors and 10 warnings
|
build-and-test
Process completed with exit code 1.
|
|
src/pages/irrigation/irrigation-page.test.tsx > Create Task by defect and delete task:
client/src/pages/irrigation/irrigation-page.test.tsx#L120
TestingLibraryElementError: Unable to find an element with the text: /irrigation.task.at 17:30/. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
<div>
<div
class="pageIrrigation"
>
<p
class="MuiTypography-root MuiTypography-body1 title_irrigation css-rizt0-MuiTypography-root"
>
irrigation.title
</p>
<div
class="MuiGrid-root MuiGrid-container MuiGrid-direction-xs-row MuiGrid-spacing-xs-4 css-1pl1h1-MuiGrid-root"
>
<div
class="MuiGrid-root MuiGrid-direction-xs-row MuiGrid-grid-xs-12 MuiGrid-grid-md-6 css-204a8q-MuiGrid-root"
>
<div
class="cardIrrigation"
style="height: 100%;"
>
<p
class="MuiTypography-root MuiTypography-body1 subtitle_irrigation css-yu8du5-MuiTypography-root"
>
irrigation.status.title
</p>
<div
class="MuiBox-root css-1gi95f"
>
<div
class="MuiBox-root css-xi606m"
>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1gtd11n-MuiSvgIcon-root"
data-testid="ThermostatIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M15 13V5c0-1.66-1.34-3-3-3S9 3.34 9 5v8c-1.21.91-2 2.37-2 4 0 2.76 2.24 5 5 5s5-2.24 5-5c0-1.63-.79-3.09-2-4m-4-2V5c0-.55.45-1 1-1s1 .45 1 1v1h-1v1h1v2h-1v1h1v1z"
/>
</svg>
<h5
class="MuiTypography-root MuiTypography-h5 css-b3tu98-MuiTypography-root"
>
25°C
</h5>
<span
class="MuiTypography-root MuiTypography-caption css-nv1bw6-MuiTypography-root"
>
irrigation.status.temp
</span>
</div>
<div
class="MuiBox-root css-xi606m"
>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-18m206j-MuiSvgIcon-root"
data-testid="AccessTimeIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"
/>
<path
d="M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"
/>
</svg>
<h5
class="MuiTypography-root MuiTypography-h5 css-b3tu98-MuiTypography-root"
>
12:00
</h5>
<span
class="MuiTypography-root MuiTypography-caption css-nv1bw6-MuiTypography-root"
>
irrigation.status.clock
</span>
</div>
</div>
<div
class="MuiBox-root css-1ishs9y"
>
<p
class="MuiTypography-root MuiTypography-body1 css-lhsbas-MuiTypography-root"
>
irrigation.status.pump1
:
common.off
</p>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vsne6h-MuiSvgIcon-root"
data-testid="WaterIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M21.98 14H22zM5.35 13c1.19 0 1.42 1 3.33 1 1.95 0 2.09-1 3.33-1 1.19 0 1.42 1 3.33 1 1.95 0 2.09-1 3.33-1 1.19 0 1.4.98 3.31 1v-2c-1.19 0-1.42-1-3.3
|
|
Unhandled error:
client/src/pages/irrigation/irrigation-page.test.tsx#L38
TypeError: Cannot read properties of undefined (reading 'state')
❯ saveChoose src/pages/irrigation/irrigation-page.test.tsx:38:70
❯ t1 src/components/days/DaySelector.tsx:17:5
❯ executeDispatch node_modules/react-dom/cjs/react-dom-client.development.js:19116:9
❯ runWithFiberInDEV node_modules/react-dom/cjs/react-dom-client.development.js:874:13
❯ processDispatchQueue node_modules/react-dom/cjs/react-dom-client.development.js:19166:19
❯ node_modules/react-dom/cjs/react-dom-client.development.js:19767:9
❯ batchedUpdates$1 node_modules/react-dom/cjs/react-dom-client.development.js:3255:40
❯ dispatchEventForPluginEventSystem node_modules/react-dom/cjs/react-dom-client.development.js:19320:7
❯ dispatchEvent node_modules/react-dom/cjs/react-dom-client.development.js:23585:11
❯ dispatchDiscreteEvent node_modules/react-dom/cjs/react-dom-client.development.js:23553:11
This error originated in "src/pages/irrigation/irrigation-page.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "Create Task by defect and delete task". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
|
build-and-test:
client/src/pages/car/components/giroscope/components/controller-model.tsx#L11
Unexpected any. Specify a different type
|
|
build-and-test:
client/src/pages/car/components/giroscope/components/car-model.tsx#L13
Unexpected any. Specify a different type
|
|
build-and-test:
client/src/context/remote-control-context.tsx#L109
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
|
|
build-and-test:
client/src/context/remote-control-context.tsx#L66
Unexpected any. Specify a different type
|
|
build-and-test:
client/src/context/remote-control-context.tsx#L17
Unexpected any. Specify a different type
|
|
build-and-test:
client/src/context/connectivity-context.tsx#L44
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
|
|
build-and-test:
client/src/config/api.config.ts#L14
Unexpected any. Specify a different type
|
|
build-and-test:
client/src/components/rgb-card/rgb-card.tsx#L10
Unexpected any. Specify a different type
|
|
build-and-test:
client/src/components/jostick-controller/jostick-controller.tsx#L30
Unexpected any. Specify a different type
|
|
build-and-test:
client/src/components/clock/clock.tsx#L16
React Hook useEffect has a missing dependency: 'saveTimeSelect'. Either include it or remove the dependency array. If 'saveTimeSelect' changes too often, find the parent component that defines it and wrap that definition in useCallback
|