Skip to content

Push on master

Push on master #217

GitHub Actions / Tests annotations (🧪 jest-coverage-report-action) succeeded Nov 22, 2024 in 0s

Test suite run success

265 tests passing in 10 suites.

Details

Created failed tests' annotations. To disable them, see documentation.

Annotations

Check failure on line 953 in src/hooks.spec.tsx

See this annotation in the file changed.

@github-actions 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)

Check failure on line 1096 in src/hooks.spec.tsx

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

hooks > useDecision > should not recompute the decision when autoupdate is not passed and setting setForcedDecision

Error: expect(element).toHaveTextContent()

Expected element to have text content:
  false|{}|true|false
Received:
  false|{}|true|true

Ignored nodes: comments, script, style
<html>
  <head />
  <body>
    <div>
      <span
        data-testid="result"
      >
        false|{}|true|true
      </span>
    </div>
  </body>
</html>
    at /home/runner/work/react-sdk/react-sdk/src/hooks.spec.tsx:1113: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)