Skip to content

get rid of componentWillReceiveProps #21

get rid of componentWillReceiveProps

get rid of componentWillReceiveProps #21

GitHub Actions / Jest Unit Test Results failed Feb 19, 2025 in 0s

1 fail, 1 981 pass in 1m 11s

    1 files  ±0    186 suites  ±0   1m 11s ⏱️ -1s
1 982 tests ±0  1 981 ✅ ±0  0 💤 ±0  1 ❌ ±0 
2 022 runs  ±0  2 021 ✅ ±0  0 💤 ±0  1 ❌ ±0 

Results for commit 9e39421. ± Comparison against earlier commit ef6b5ed.

Annotations

Check warning on line 0 in RulesEditor component updating when new "typeMapping", "policyMapping" and "completionLists" props should render "CodeMirror" with correct "options" prop

See this annotation in the file changed.

@github-actions github-actions / Jest Unit Test Results

RulesEditor component updating when new "typeMapping", "policyMapping" and "completionLists" props should render "CodeMirror" w…n new "typeMapping", "policyMapping" and "completionLists" props should render "CodeMirror" with correct "options" prop) failed

artifacts/jest-junit/junit.xml [took 0s]
Raw output
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

Expected: ObjectContaining {"options": {"completionLists": {"test": "test"}, "keySelector": ["all", "rare"], "name": "rulesCMM", "policyMapping": {"test": "test"}, "typeMapping": {"test": "test"}}}, {}
Received
       1
          {"className": "codeMirrorFullScreen", "onBeforeChange": [Function onBeforeChange], "onBlur": [Function onBlur], "onChange": [Function onChange], "onFocus": [Function onFocus], "options": {"electricChars": true, "foldGutter": {"gutter": "rules-foldgutter", "indicatorFolded": <div style="width: 26px; height: 26px; cursor: pointer;"><svg style="width: 100%; height: 100%;"><polygon fill="#666" points="8.7 4 18 9.4 8.7 14.8" /></svg></div>, "indicatorOpen": <div style="width: 26px; height: 26px; cursor: pointer;"><svg style="width: 100%; height: 100%;"><polygon fill="#666" points="18.7 4.8 13.4 14.1 8 4.8" /></svg></div>, "rangeFinder": "rules"}, "gutters": ["CodeMirror-linenumbers", "rules-foldgutter"], "indentUnit": 4, "indentWithTabs": true, "lineNumbers": true, "lineWrapping": true, "mode": {"completionLists": {}, "keySelector": ["all", "rare"], "name": "rulesCMM", "policyMapping": {}, "typeMapping": {}}, "readOnly": false, "rtlMoveVisually": true, "smartIndent": true, "tabSize": 4, "tabindex": 0}, "value": "code"},
          {},
       2: called with 0 arguments
       3
          {"className": "codeMirrorFullScreen", "onBeforeChange": [Function onBeforeChange], "onBlur": [Function onBlur], "onChange": [Function onChange], "onFocus": [Function onFocus], "options": {"electricChars": true, "foldGutter": {"gutter": "rules-foldgutter", "indicatorFolded": <div style="width: 26px; height: 26px; cursor: pointer;"><svg style="width: 100%; height: 100%;"><polygon fill="#666" points="8.7 4 18 9.4 8.7 14.8" /></svg></div>, "indicatorOpen": <div style="width: 26px; height: 26px; cursor: pointer;"><svg style="width: 100%; height: 100%;"><polygon fill="#666" points="18.7 4.8 13.4 14.1 8 4.8" /></svg></div>, "rangeFinder": "rules"}, "gutters": ["CodeMirror-linenumbers", "rules-foldgutter"], "indentUnit": 4, "indentWithTabs": true, "lineNumbers": true, "lineWrapping": true, "mode": {"completionLists": {}, "keySelector": ["all", "rare"], "name": "rulesCMM", "policyMapping": {}, "typeMapping": {}}, "readOnly": false, "rtlMoveVisually": true, "smartIndent": true, "tabSize": 4, "tabindex": 0}, "value": "code"},
          {},

Number of calls: 10
    at Object.toHaveBeenCalledWith (/home/runner/work/ui-circulation/ui-circulation/src/settings/lib/RuleEditor/RulesEditor.test.js:727:30)
    at Promise.then.completed (/home/runner/work/ui-circulation/ui-circulation/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/ui-circulation/ui-circulation/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/ui-circulation/ui-circulation/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/ui-circulation/ui-circulation/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/ui-circulation/ui-circulation/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/ui-circulation/ui-circulation/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/ui-circulation/ui-circulation/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/ui-circulation/ui-circulation/node_modules/jest-circus/build/run.js:121:9)
    at _runTestsForDescribeBlock (/home/runner/work/ui-circulation/ui-circulation/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/ui-circulation/ui-circulation/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/ui-circulation/ui-circulation/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/ui-circulation/ui-circulation/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/ui-circulation/ui-circulation/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/ui-circulation/ui-circulation/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/ui-circulation/ui-circulation/node_modules/jest-runner/build/testWorker.js:106:12)