60 lines
5.7 KiB
Plaintext
60 lines
5.7 KiB
Plaintext
|
|
> job-tracker-ui@0.1.0 test
|
|
> jest --runInBand job-table-density.test.tsx jobs-view-integration.test.tsx workflow-trust-signals.test.tsx
|
|
|
|
node.exe : FAIL src/job-table-density.test.tsx (14.149 s)
|
|
At line:1 char:1
|
|
+ & "C:\Program Files\nodejs/node.exe" "C:\Program Files\nodejs/node_mo ...
|
|
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
+ CategoryInfo : NotSpecified: (FAIL src/job-ta....tsx (14.149 s):String) [], RemoteException
|
|
+ FullyQualifiedErrorId : NativeCommandError
|
|
|
|
● Console
|
|
|
|
console.error
|
|
An update to ForwardRef(TouchRipple) inside a test was not wrapped in act(...).
|
|
|
|
When testing, code that causes React state updates should be wrapped into act(...):
|
|
|
|
act(() => {
|
|
/* fire events that update state */
|
|
});
|
|
/* assert on the output */
|
|
|
|
This ensures that you're testing the behavior the user would see in the browser. Learn more at
|
|
https://react.dev/link/wrap-tests-with-act
|
|
|
|
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
|
|
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
|
|
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
|
|
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
|
|
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
|
|
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
|
|
at Object.stop (node_modules/@mui/material/ButtonBase/TouchRipple.js:292:5)
|
|
at node_modules/@mui/material/useLazyRipple/useLazyRipple.js:74:47
|
|
|
|
● density survives an empty result and a failed refresh with the existing retry action
|
|
|
|
expect(element).not.toBeInTheDocument()
|
|
|
|
expected document not to contain element, found <span class="MuiTypography-root MuiTypography-body1
|
|
css-qs4z2u-MuiTypography-root">Platform engineer</span> instead
|
|
|
|
206 | await waitFor(() => expect(screen.queryByRole("alert")).not.toBeInTheDocument());
|
|
207 | expect(screen.getByRole("combobox", { name: t.listDensity })).toHaveTextContent(t.densityCompact);
|
|
> 208 | expect(screen.queryByText(job.jobTitle)).not.toBeInTheDocument();
|
|
| ^
|
|
209 | });
|
|
210 |
|
|
211 | test("Bokmål display localizes standard statuses without changing API values or custom status filters",
|
|
async () => {
|
|
|
|
at Object.toBeInTheDocument (src/job-table-density.test.tsx:208:48)
|
|
|
|
|
|
Test Suites: 1 failed, 2 passed, 3 total
|
|
Tests: 1 failed, 38 passed, 39 total
|
|
Snapshots: 0 total
|
|
Time: 27.244 s
|
|
Ran all test suites matching job-table-density.test.tsx|jobs-view-integration.test.tsx|workflow-trust-signals.test.tsx.
|