[FSSDK-10880] override initial user bug adjustment #344
GitHub Actions / Tests annotations (🧪 jest-coverage-report-action)
failed
Nov 7, 2024 in 0s
Test suite run failed
Failed tests: 1/263. Failed suites: 1/10.
Details
Created failed tests' annotations. To disable them, see documentation.
● hooks › useDecision › should not re-render when the user attributes change without autoUpdate
expect(element).toHaveTextContent()
Expected element to have text content:
false|{}|true|false
Received:
true|{"foo":"bar"}|true|false
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<span
data-testid="result"
>
true|{"foo":"bar"}|true|false
</span>
</div>
</body>
</html>
970 | userUpdateCallbacks.forEach((fn) => fn());
971 | });
> 972 | await waitFor(() => expect(screen.getByTestId('result')).toHaveTextContent('false|{}|true|false'));
| ^
973 | });
974 |
975 | it('should return the decision immediately on the first call when the client is already ready', async () => {
at src/hooks.spec.tsx:972:64
at runWithExpensiveErrorDiagnosticsDisabled (node_modules/@testing-library/dom/dist/config.js:47:12)
at checkCallback (node_modules/@testing-library/dom/dist/wait-for.js:124:77)
at checkRealTimersCallback (node_modules/@testing-library/dom/dist/wait-for.js:118:16)
at Timeout.task [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:520:19)
Annotations
Check failure on line 953 in src/hooks.spec.tsx
github-actions / Tests annotations (🧪 jest-coverage-report-action)
hooks > useDecision > should not re-render when the user attributes change without autoUpdate
Error: expect(element).toHaveTextContent()
Expected element to have text content:
false|{}|true|false
Received:
true|{"foo":"bar"}|true|false
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<span
data-testid="result"
>
true|{"foo":"bar"}|true|false
</span>
</div>
</body>
</html>
at /home/runner/work/react-sdk/react-sdk/src/hooks.spec.tsx:972:64
at runWithExpensiveErrorDiagnosticsDisabled (/home/runner/work/react-sdk/react-sdk/node_modules/@testing-library/dom/dist/config.js:47:12)
at checkCallback (/home/runner/work/react-sdk/react-sdk/node_modules/@testing-library/dom/dist/wait-for.js:124:77)
at checkRealTimersCallback (/home/runner/work/react-sdk/react-sdk/node_modules/@testing-library/dom/dist/wait-for.js:118:16)
at Timeout.task [as _onTimeout] (/home/runner/work/react-sdk/react-sdk/node_modules/jsdom/lib/jsdom/browser/Window.js:520:19)
at listOnTimeout (node:internal/timers:569:17)
at processTimers (node:internal/timers:512:7)
Loading