Загрузка данных


 transform: scaleY(1);\n' +
          '        transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n' +
          '    }\n' +
          '\n' +
          '    .p-connected-overlay-enter-done {\n' +
          '        transform: none;\n' +
          '    }\n' +
          '\n' +
          '    .p-connected-overlay-exit {\n' +
          '        opacity: 1;\n' +
          '    }\n' +
          '\n' +
          '    .p-connected-overlay-exit-active {\n' +
          '        opacity: 0;\n' +
          '        transition: opacity .1s linear;\n' +
          '    }\n' +
          '\n' +
          '    /* Toggleable Content */\n' +
          '    .p-toggleable-content-enter {\n' +
          '        max-height: 0;\n' +
          '    }\n' +
          '\n' +
          '    .p-toggleable-content-enter-active {\n' +
          '        overflow: hidden;\n' +
          '        max-height: 1000px;\n' +
          '        transition: max-height 1s ease-in-out;\n' +
          '    }\n' +
          '\n' +
          '    .p-toggleable-content-enter-done {\n' +
          '        transform: none;\n' +
          '    }\n' +
          '\n' +
          '    .p-toggleable-content-exit {\n' +
          '        max-height: 1000px;\n' +
          '    }\n' +
          '\n' +
          '    .p-toggleable-content-exit-active {\n' +
          '        overflow: hidden;\n' +
          '        max-height: 0;\n' +
          '        transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);\n' +
          '    }\n' +
          '\n' +
          '    .p-sr-only {\n' +
          '        border: 0;\n' +
          '        clip: rect(1px, 1px, 1px, 1px);\n' +
          '        clip-path: inset(50%);\n' +
          '        height: 1px;\n' +
          '        margin: -1px;\n' +
          '        overflow: hidden;\n' +
          '        padding: 0;\n' +
          '        position: absolute;\n' +
          '        width: 1px;\n' +
          '        word-wrap: normal;\n' +
          '    }\n' +
          '\n' +
          '    /* @todo Refactor */\n' +
          '    .p-menu .p-menuitem-link {\n' +
          '        cursor: pointer;\n' +
          '        display: flex;\n' +
          '        align-items: center;\n' +
          '        text-decoration: none;\n' +
          '        overflow: hidden;\n' +
          '        position: relative;\n' +
          '    }\n' +
          '\n' +
          '    \n' +
          '.p-button {\n' +
          '    margin: 0;\n' +
          '    display: inline-flex;\n' +
          '    cursor: pointer;\n' +
          '    user-select: none;\n' +
          '    align-items: center;\n' +
          '    vertical-align: bottom;\n' +
          '    text-align: center;\n' +
          '    overflow: hidden;\n' +
          '    position: relative;\n' +
          '}\n' +
          '\n' +
          '.p-button-label {\n' +
          '    flex: 1 1 auto;\n' +
          '}\n' +
          '\n' +
          '.p-button-icon-right {\n' +
          '    order: 1;\n' +
          '}\n' +
          '\n' +
          '.p-button:disabled {\n' +
          '    cursor: default;\n' +
          '}\n' +
          '\n' +
          '.p-button-icon-only {\n' +
          '    justify-content: center;\n' +
          '}\n' +
          '\n' +
          '.p-button-icon-only .p-button-label {\n' +
          '    visibility: hidden;\n' +
          '    width: 0;\n' +
          '    flex: 0 0 auto;\n' +
          '}\n' +
          '\n' +
          '.p-button-vertical {\n' +
          '    flex-direction: column;\n' +
          '}\n' +
          '\n' +
          '.p-button-icon-bottom {\n' +
          '    order: 2;\n' +
          '}\n' +
          '\n' +
          '.p-button-group .p-button {\n' +
          '    margin: 0;\n' +
          '}\n' +
          '\n' +
          '.p-button-group .p-button:not(:last-child) {\n' +
          '    border-right: 0 none;\n' +
          '}\n' +
          '\n' +
          '.p-button-group .p-button:not(:first-of-type):not(:last-of-type) {\n' +
          '    border-radius: 0;\n' +
          '}\n' +
          '\n' +
          '.p-button-group .p-button:first-of-type {\n' +
          '    border-top-right-radius: 0;\n' +
          '    border-bottom-right-radius: 0;\n' +
          '}\n' +
          '\n' +
          '.p-button-group .p-button:last-of-type {\n' +
          '    border-top-left-radius: 0;\n' +
          '    border-bottom-left-radius: 0;\n' +
          '}\n' +
          '\n' +
          '.p-button-group .p-button:focus {\n' +
          '    position: relative;\n' +
          '    z-index: 1;\n' +
          '}\n' +
          '\n' +
          '    \n' +
          '.p-inputtext {\n' +
          '    margin: 0;\n' +
          '}\n' +
          '\n' +
          '.p-fluid .p-inputtext {\n' +
          '    width: 100%;\n' +
          '}\n' +
          '\n' +
          '/* InputGroup */\n' +
          '.p-inputgroup {\n' +
          '    display: flex;\n' +
          '    align-items: stretch;\n' +
          '    width: 100%;\n' +
          '}\n' +
          '\n' +
          '.p-inputgroup-addon {\n' +
          '    display: flex;\n' +
          '    align-items: center;\n' +
          '    justify-content: center;\n' +
          '}\n' +
          '\n' +
          '.p-inputgroup .p-float-label {\n' +
          '    display: flex;\n' +
          '    align-items: stretch;\n' +
          '    width: 100%;\n' +
          '}\n' +
          '\n' +
          '.p-inputgroup .p-inputtext,\n' +
          '.p-fluid .p-inputgroup .p-inputtext,\n' +
          '.p-inputgroup .p-inputwrapper,\n' +
          '.p-fluid .p-inputgroup .p-input {\n' +
          '    flex: 1 1 auto;\n' +
          '    width: 1%;\n' +
          '}\n' +
          '\n' +
          '/* Floating Label */\n' +
          '.p-float-label {\n' +
          '    display: block;\n' +
          '    position: relative;\n' +
          '}\n' +
          '\n' +
          '.p-float-label label {\n' +
          '    position: absolute;\n' +
          '    pointer-events: none;\n' +
          '    top: 50%;\n' +
          '    margin-top: -0.5rem;\n' +
          '    transition-property: all;\n' +
          '    transition-timing-function: ease;\n' +
          '    line-height: 1;\n' +
          '}\n' +
          '\n' +
          '.p-float-label textarea ~ label,\n' +
          '.p-float-label .p-mention ~ label {\n' +
          '    top: 1rem;\n' +
          '}\n' +
          '\n' +
          '.p-float-label input:focus ~ label,\n' +
          '.p-float-label input:-webkit-autofill ~ label,\n' +
          '.p-float-label input.p-filled ~ label,\n' +
          '.p-float-label textarea:focus ~ label,\n' +
          '.p-float-label textarea.p-filled ~ label,\n' +
          '.p-float-label .p-inputwrapper-focus ~ label,\n' +
          '.p-float-label .p-inputwrapper-filled ~ label,\n' +
          '.p-float-label .p-tooltip-target-wrapper ~ label {\n' +
          '    top: -0.75rem;\n' +
          '    font-size: 12px;\n' +
          '}\n' +
          '\n' +
          '.p-float-label .p-placeholder,\n' +
          '.p-float-label input::placeholder,\n' +
          '.p-float-label .p-inputtext::placeholder {\n' +
          '    opacity: 0;\n' +
          '    transition-property: all;\n' +
          '    transition-timing-function: ease;\n' +
          '}\n' +
          '\n' +
          '.p-float-label .p-focus .p-placeholder,\n' +
          '.p-float-label input:focus::placeholder,\n' +
          '.p-float-label .p-inputtext:focus::placeholder {\n' +
          '    opacity: 1;\n' +
          '    transition-property: all;\n' +
          '    transition-timing-function: ease;\n' +
          '}\n' +
          '\n' +
          '.p-input-icon-left,\n' +
          '.p-input-icon-right {\n' +
          '    position: relative;\n' +
          '    display: inline-block;\n' +
          '}\n' +
          '\n' +
          '.p-input-icon-left > i,\n' +
          '.p-input-icon-right > i,\n' +
          '.p-input-icon-left > svg,\n' +
          '.p-input-icon-right > svg,\n' +
          '.p-input-icon-left > .p-input-prefix,\n' +
          '.p-input-icon-right > .p-input-suffix {\n' +
          '    position: absolute;\n' +
          '    top: 50%;\n' +
          '    margin-top: -0.5rem;\n' +
          '}\n' +
          '\n' +
          '.p-fluid .p-input-icon-left,\n' +
          '.p-fluid .p-input-icon-right {\n' +
          '    display: block;\n' +
          '    width: 100%;\n' +
          '}\n' +
          '\n' +
          '    \n' +
          '.p-icon {\n' +
          '    display: inline-block;\n' +
          '}\n' +
          '\n' +
          '.p-icon-spin {\n' +
          '    -webkit-animation: p-icon-spin 2s infinite linear;\n' +
          '    animation: p-icon-spin 2s infinite linear;\n' +
          '}\n' +
          '\n' +
          'svg.p-icon {\n' +
          '    pointer-events: auto;\n' +
          '}\n' +
          '\n' +
          'svg.p-icon g,\n' +
          '.p-disabled svg.p-icon {\n' +
          '    pointer-events: none;\n' +
          '}\n' +
          '\n' +
          '@-webkit-keyframes p-icon-spin {\n' +
          '    0% {\n' +
          '        -webkit-transform: rotate(0deg);\n' +
          '        transform: rotate(0deg);\n' +
          '    }\n' +
          '    100% {\n' +
          '        -webkit-transform: rotate(359deg);\n' +
          '        transform: rotate(359deg);\n' +
          '    }\n' +
          '}\n' +
          '\n' +
          '@keyframes p-icon-spin {\n' +
          '    0% {\n' +
          '        -webkit-transform: rotate(0deg);\n' +
          '        transform: rotate(0deg);\n' +
          '    }\n' +
          '    100% {\n' +
          '        -webkit-transform: rotate(359deg);\n' +
          '        transform: rotate(359deg);\n' +
          '    }\n' +
          '}\n' +
          '\n' +
          '}\n',
        type: 'css parsing'
      }

      179 |     ];
      180 |
    > 181 |     render(
          |           ^
      182 |       <LegendComponent
      183 |         viewModel={new BehaviorSubject(model)}
      184 |         ohlcConfig={{ show: true }}

      at VirtualConsole.<anonymous> (node_modules/jest-environment-jsdom/build/index.js:63:23)
      at exports.createStylesheet (node_modules/jsdom/lib/jsdom/living/helpers/stylesheets.js:38:63)
      at HTMLStyleElementImpl._updateAStyleBlock (node_modules/jsdom/lib/jsdom/living/nodes/HTMLStyleElement-impl.js:68:5)
      at HTMLStyleElementImpl._childTextContentChangeSteps (node_modules/jsdom/lib/jsdom/living/nodes/HTMLStyleElement-impl.js:36:12)
      at HTMLStyleElementImpl._insert (node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js:822:14)
      at HTMLStyleElementImpl._replaceAll (node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js:1047:12)
      at HTMLStyleElementImpl.set textContent [as textContent] (node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js:572:14)
      at HTMLStyleElement.set textContent [as textContent] (node_modules/jsdom/lib/jsdom/living/generated/Node.js:678:44)
      at k (node_modules/exchange-elements/dist/styles-_x7fhVrZ.cjs:27:4959)
      at node_modules/exchange-elements/dist/styles-_x7fhVrZ.cjs:435:5441
      at node_modules/exchange-elements/dist/styles-_x7fhVrZ.cjs:27:1840
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23150:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24931:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24891:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24878:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24866:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27039:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:26984:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26769:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at act (node_modules/react/cjs/react.development.js:2582:11)
      at node_modules/@testing-library/react/dist/act-compat.js:63:25
      at renderRoot (node_modules/@testing-library/react/dist/pure.js:159:26)
      at render (node_modules/@testing-library/react/dist/pure.js:246:10)
      at Object.<anonymous> (src/components/__tests__/LegendComponent.test.tsx:181:11)

    console.error
      Error: Uncaught [ReferenceError: ResizeObserver is not defined]
          at reportException (C:\Users\ShkinderDV\moex-chart\node_modules\jsdom\lib\jsdom\living\helpers\runtime-script-errors.js:66:24)
          at innerInvokeEventListeners (C:\Users\ShkinderDV\moex-chart\node_modules\jsdom\lib\jsdom\living\events\EventTarget-impl.js:353:9)
          at invokeEventListeners (C:\Users\ShkinderDV\moex-chart\node_modules\jsdom\lib\jsdom\living\events\EventTarget-impl.js:286:3)
          at HTMLUnknownElementImpl._dispatch (C:\Users\ShkinderDV\moex-chart\node_modules\jsdom\lib\jsdom\living\events\EventTarget-impl.js:233:9)
          at HTMLUnknownElementImpl.dispatchEvent (C:\Users\ShkinderDV\moex-chart\node_modules\jsdom\lib\jsdom\living\events\EventTarget-impl.js:104:17)
          at HTMLUnknownElement.dispatchEvent (C:\Users\ShkinderDV\moex-chart\node_modules\jsdom\lib\jsdom\living\generated\EventTarget.js:241:34)
          at Object.invokeGuardedCallbackDev (C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:4213:16)
          at invokeGuardedCallback (C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:4277:31)
          at reportUncaughtErrorInDEV (C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:22838:5)
          at captureCommitPhaseError (C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:27126:5)
          at commitPassiveMountEffects_complete (C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:24893:9)
          at commitPassiveMountEffects_begin (C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:24878:7)
          at commitPassiveMountEffects (C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:24866:3)
          at flushPassiveEffectsImpl (C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:27039:3)
          at flushPassiveEffects (C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:26984:14)
          at C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:26769:9
          at flushActQueue (C:\Users\ShkinderDV\moex-chart\node_modules\react\cjs\react.development.js:2667:24)
          at act (C:\Users\ShkinderDV\moex-chart\node_modules\react\cjs\react.development.js:2582:11)
          at C:\Users\ShkinderDV\moex-chart\node_modules\@testing-library\react\dist\act-compat.js:63:25
          at renderRoot (C:\Users\ShkinderDV\moex-chart\node_modules\@testing-library\react\dist\pure.js:159:26)
          at render (C:\Users\ShkinderDV\moex-chart\node_modules\@testing-library\react\dist\pure.js:246:10)
          at Object.<anonymous> (C:\Users\ShkinderDV\moex-chart\src\components\__tests__\LegendComponent.test.tsx:181:11)
          at Promise.then.completed (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\utils.js:298:28)
          at new Promise (<anonymous>)
          at callAsyncCircusFn (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\utils.js:231:10)
          at _callCircusTest (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\run.js:316:40)
          at processTicksAndRejections (node:internal/process/task_queues:95:5)
          at _runTest (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\run.js:252:3)
          at _runTestsForDescribeBlock (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\run.js:126:9)
          at _runTestsForDescribeBlock (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\run.js:121:9)
          at run (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\run.js:71:3)
          at runAndTransformResultsToJestFormat (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\legacy-code-todo-rewrite\jestAdapterInit.js:122:21)
          at jestAdapter (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\legacy-code-todo-rewrite\jestAdapter.js:79:19)
          at runTestInternal (C:\Users\ShkinderDV\moex-chart\node_modules\jest-runner\build\runTest.js:367:16)
          at runTest (C:\Users\ShkinderDV\moex-chart\node_modules\jest-runner\build\runTest.js:444:34)
          at Object.worker (C:\Users\ShkinderDV\moex-chart\node_modules\jest-runner\build\testWorker.js:106:12) {
        detail: ReferenceError: ResizeObserver is not defined
            at C:\Users\ShkinderDV\moex-chart\node_modules\exchange-elements\dist\v2.cjs.js:43:968
            at commitHookEffectListMount (C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:23150:26)
            at commitPassiveMountOnFiber (C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:24931:11)
            at commitPassiveMountEffects_complete (C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:24891:9)
            at commitPassiveMountEffects_begin (C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:24878:7)
            at commitPassiveMountEffects (C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:24866:3)
            at flushPassiveEffectsImpl (C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:27039:3)
            at flushPassiveEffects (C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:26984:14)
            at C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:26769:9
            at flushActQueue (C:\Users\ShkinderDV\moex-chart\node_modules\react\cjs\react.development.js:2667:24)
            at act (C:\Users\ShkinderDV\moex-chart\node_modules\react\cjs\react.development.js:2582:11)
            at C:\Users\ShkinderDV\moex-chart\node_modules\@testing-library\react\dist\act-compat.js:63:25
            at renderRoot (C:\Users\ShkinderDV\moex-chart\node_modules\@testing-library\react\dist\pure.js:159:26)
            at render (C:\Users\ShkinderDV\moex-chart\node_modules\@testing-library\react\dist\pure.js:246:10)
            at Object.<anonymous> (C:\Users\ShkinderDV\moex-chart\src\components\__tests__\LegendComponent.test.tsx:181:11)
            at Promise.then.completed (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\utils.js:298:28)
            at new Promise (<anonymous>)
            at callAsyncCircusFn (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\utils.js:231:10)
            at _callCircusTest (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\run.js:316:40)
            at processTicksAndRejections (node:internal/process/task_queues:95:5)
            at _runTest (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\run.js:252:3)
            at _runTestsForDescribeBlock (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\run.js:126:9)
            at _runTestsForDescribeBlock (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\run.js:121:9)
            at run (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\run.js:71:3)
            at runAndTransformResultsToJestFormat (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\legacy-code-todo-rewrite\jestAdapterInit.js:122:21)
            at jestAdapter (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\legacy-code-todo-rewrite\jestAdapter.js:79:19)
            at runTestInternal (C:\Users\ShkinderDV\moex-chart\node_modules\jest-runner\build\runTest.js:367:16)
            at runTest (C:\Users\ShkinderDV\moex-chart\node_modules\jest-runner\build\runTest.js:444:34)
            at Object.worker (C:\Users\ShkinderDV\moex-chart\node_modules\jest-runner\build\testWorker.js:106:12),
        type: 'unhandled exception'
      }

      179 |     ];
      180 |
    > 181 |     render(
          |           ^
      182 |       <LegendComponent
      183 |         viewModel={new BehaviorSubject(model)}
      184 |         ohlcConfig={{ show: true }}

      at VirtualConsole.<anonymous> (node_modules/jest-environment-jsdom/build/index.js:63:23)
      at reportException (node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:70:28)
      at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
      at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
      at HTMLUnknownElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
      at HTMLUnknownElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
      at HTMLUnknownElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
      at Object.invokeGuardedCallbackDev (node_modules/react-dom/cjs/react-dom.development.js:4213:16)
      at invokeGuardedCallback (node_modules/react-dom/cjs/react-dom.development.js:4277:31)
      at reportUncaughtErrorInDEV (node_modules/react-dom/cjs/react-dom.development.js:22838:5)
      at captureCommitPhaseError (node_modules/react-dom/cjs/react-dom.development.js:27126:5)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24893:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24878:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24866:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27039:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:26984:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26769:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at act (node_modules/react/cjs/react.development.js:2582:11)
      at node_modules/@testing-library/react/dist/act-compat.js:63:25
      at renderRoot (node_modules/@testing-library/react/dist/pure.js:159:26)
      at render (node_modules/@testing-library/react/dist/pure.js:246:10)
      at Object.<anonymous> (src/components/__tests__/LegendComponent.test.tsx:181:11)

    console.error
      Error: Could not parse CSS stylesheet
          at exports.createStylesheet (C:\Users\ShkinderDV\moex-chart\node_modules\jsdom\lib\jsdom\living\helpers\stylesheets.js:34:21)
          at HTMLStyleElementImpl._updateAStyleBlock (C:\Users\ShkinderDV\moex-chart\node_modules\jsdom\lib\jsdom\living\nodes\HTMLStyleElement-impl.js:68:5)
          at HTMLStyleElementImpl._childTextContentChangeSteps (C:\Users\ShkinderDV\moex-chart\node_modules\jsdom\lib\jsdom\living\nodes\HTMLStyleElement-impl.js:36:12)
          at HTMLStyleElementImpl._insert (C:\Users\ShkinderDV\moex-chart\node_modules\jsdom\lib\jsdom\living\nodes\Node-impl.js:822:14)
          at HTMLStyleElementImpl._replaceAll (C:\Users\ShkinderDV\moex-chart\node_modules\jsdom\lib\jsdom\living\nodes\Node-impl.js:1047:12)
          at HTMLStyleElementImpl.set textContent [as textContent] (C:\Users\ShkinderDV\moex-chart\node_modules\jsdom\lib\jsdom\living\nodes\Node-impl.js:572:14)
          at HTMLStyleElement.set textContent [as textContent] (C:\Users\ShkinderDV\moex-chart\node_modules\jsdom\lib\jsdom\living\generated\Node.js:678:44)
          at k (C:\Users\ShkinderDV\moex-chart\node_modules\exchange-elements\dist\styles-_x7fhVrZ.cjs:27:4959)
          at C:\Users\ShkinderDV\moex-chart\node_modules\exchange-elements\dist\styles-_x7fhVrZ.cjs:435:5441
          at C:\Users\ShkinderDV\moex-chart\node_modules\exchange-elements\dist\styles-_x7fhVrZ.cjs:27:1840
          at commitHookEffectListMount (C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:23150:26)
          at commitPassiveMountOnFiber (C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:24931:11)
          at commitPassiveMountEffects_complete (C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:24891:9)
          at commitPassiveMountEffects_begin (C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:24878:7)
          at commitPassiveMountEffects (C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:24866:3)
          at flushPassiveEffectsImpl (C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:27039:3)
          at flushPassiveEffects (C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:26984:14)
          at C:\Users\ShkinderDV\moex-chart\node_modules\react-dom\cjs\react-dom.development.js:26769:9
          at flushActQueue (C:\Users\ShkinderDV\moex-chart\node_modules\react\cjs\react.development.js:2667:24)
          at act (C:\Users\ShkinderDV\moex-chart\node_modules\react\cjs\react.development.js:2582:11)
          at C:\Users\ShkinderDV\moex-chart\node_modules\@testing-library\react\dist\act-compat.js:63:25
          at renderRoot (C:\Users\ShkinderDV\moex-chart\node_modules\@testing-library\react\dist\pure.js:159:26)
          at render (C:\Users\ShkinderDV\moex-chart\node_modules\@testing-library\react\dist\pure.js:246:10)
          at Object.<anonymous> (C:\Users\ShkinderDV\moex-chart\src\components\__tests__\LegendComponent.test.tsx:181:11)
          at Promise.then.completed (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\utils.js:298:28)
          at new Promise (<anonymous>)
          at callAsyncCircusFn (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\utils.js:231:10)
          at _callCircusTest (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\run.js:316:40)
          at processTicksAndRejections (node:internal/process/task_queues:95:5)
          at _runTest (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\run.js:252:3)
          at _runTestsForDescribeBlock (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\run.js:126:9)
          at _runTestsForDescribeBlock (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\run.js:121:9)
          at run (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\run.js:71:3)
          at runAndTransformResultsToJestFormat (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\legacy-code-todo-rewrite\jestAdapterInit.js:122:21)
          at jestAdapter (C:\Users\ShkinderDV\moex-chart\node_modules\jest-circus\build\legacy-code-todo-rewrite\jestAdapter.js:79:19)
          at runTestInternal (C:\Users\ShkinderDV\moex-chart\node_modules\jest-runner\build\runTest.js:367:16)
          at runTest (C:\Users\ShkinderDV\moex-chart\node_modules\jest-runner\build\runTest.js:444:34)
          at Object.worker (C:\Users\ShkinderDV\moex-chart\node_modules\jest-runner\build\testWorker.js:106:12) {
        detail: '\n' +
          '@layer primereact {\n' +
          '    .p-component, .p-component * {\n' +
          '        box-sizing: border-box;\n' +
          '    }\n' +
          '\n' +
          '    .p-hidden {\n' +
          '        display: none;\n' +
          '    }\n' +
          '\n' +
          '    .p-hidden-space {\n' +
          '        visibility: hidden;\n' +
          '    }\n' +
          '\n' +
          '    .p-reset {\n' +
          '        margin: 0;\n' +
          '        padding: 0;\n' +
          '        border: 0;\n' +
          '        outline: 0;\n' +
          '        text-decoration: none;\n' +
          '        font-size: 100%;\n' +
          '        list-style: none;\n' +
          '    }\n' +
          '\n' +
          '    .p-disabled, .p-disabled * {\n' +
          '        cursor: default;\n' +
          '        pointer-events: none;\n' +
          '        user-select: none;\n' +
          '    }\n' +
          '\n' +
          '    .p-component-overlay {\n' +
          '        position: fixed;\n' +
          '        top: 0;\n' +
          '        left: 0;\n' +
          '        width: 100%;\n' +
          '        height: 100%;\n' +
          '    }\n' +
          '\n' +
          '    .p-unselectable-text {\n' +
          '        user-select: none;\n' +
          '    }\n' +
          '\n' +
          '    .p-scrollbar-measure {\n' +
          '        width: 100px;\n' +
          '        height: 100px;\n' +
          '        overflow: scroll;\n' +
          '        position: absolute;\n' +
          '        top: -9999px;\n' +
          '    }\n' +
          '\n' +
          '    @-webkit-keyframes p-fadein {\n' +
          '      0%   { opacity: 0; }\n' +
          '      100% { opacity: 1; }\n' +
          '    }\n' +
          '    @keyframes p-fadein {\n' +
          '      0%   { opacity: 0; }\n' +
          '      100% { opacity: 1; }\n' +
          '    }\n' +
          '\n' +
          '    .p-link {\n' +
          '        text-align: left;\n' +
          '        background-color: transparent;\n' +
          '        margin: 0;\n' +
          '        padding: 0;\n' +
          '        border: none;\n' +
          '        cursor: pointer;\n' +
          '        user-select: none;\n' +
          '    }\n' +
          '\n' +
          '    .p-link:disabled {\n' +
          '        cursor: default;\n' +
          '    }\n' +
          '\n' +
          '    /* Non react overlay animations */\n' +
          '    .p-connected-overlay {\n' +
          '        opacity: 0;\n' +
          '        transform: scaleY(0.8);\n' +
          '        transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n' +
          '    }\n' +
          '\n' +
          '    .p-connected-overlay-visible {\n' +
          '        opacity: 1;\n' +
          '        transform: scaleY(1);\n' +
          '    }\n' +
          '\n' +
          '    .p-connected-overlay-hidden {\n' +
          '        opacity: 0;\n' +
          '        transform: scaleY(1);\n' +
          '        transition: opacity .1s linear;\n' +
          '    }\n' +
          '\n' +
          '    /* React based overlay animations */\n' +
          '    .p-connected-overlay-enter {\n' +
          '        opacity: 0;\n' +
          '        transform: scaleY(0.8);\n' +
          '    }\n' +
          '\n' +
          '    .p-connected-overlay-enter-active {\n' +
          '        opacity: 1;\n' +
          '        transform: scaleY(1);\n' +
          '        transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n' +
          '    }\n' +
          '\n' +
          '    .p-connected-overlay-enter-done {\n' +
          '        transform: none;\n' +
          '    }\n' +
          '\n' +
          '    .p-connected-overlay-exit {\n' +
          '        opacity: 1;\n' +
          '    }\n' +
          '\n' +
          '    .p-connected-overlay-exit-active {\n' +
          '        opacity: 0;\n' +
          '        transition: opacity .1s linear;\n' +
          '    }\n' +
          '\n' +
          '    /* Toggleable Content */\n' +
          '    .p-toggleable-content-enter {\n' +
          '        max-height: 0;\n' +
          '    }\n' +
          '\n' +
          '    .p-toggleable-content-enter-active {\n' +
          '        overflow: hidden;\n' +
          '        max-height: 1000px;\n' +
          '        transition: max-height 1s ease-in-out;\n' +
          '    }\n' +
          '\n' +
          '    .p-toggleable-content-enter-done {\n' +
          '        transform: none;\n' +
          '    }\n' +
          '\n' +
          '    .p-toggleable-content-exit {\n' +
          '        max-height: 1000px;\n' +
          '    }\n' +
          '\n' +
          '    .p-toggleable-content-exit-active {\n' +
          '        overflow: hidden;\n' +
          '        max-height: 0;\n' +
          '        transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);\n' +
          '    }\n' +
          '\n' +
          '    .p-sr-only {\n' +
          '        border: 0;\n' +
          '        clip: rect(1px, 1px, 1px, 1px);\n' +
          '        clip-path: inset(50%);\n' +
          '        height: 1px;\n' +
          '        margin: -1px;\n' +
          '        overflow: hidden;\n' +
          '        padding: 0;\n' +
          '        position: absolute;\n' +
          '        width: 1px;\n' +
          '        word-wrap: normal;\n' +
          '    }\n' +
          '\n' +
          '    /* @todo Refactor */\n' +
          '    .p-menu .p-menuitem-link {\n' +
          '        cursor: pointer;\n' +
          '        display: flex;\n' +
          '        align-items: center;\n' +
          '        text-decoration: none;\n' +
          '        overflow: hidden;\n' +
          '        position: relative;\n' +
          '    }\n' +
          '\n' +
          '    \n' +
          '.p-button {\n' +
          '    margin: 0;\n' +
          '    display: inline-flex;\n' +
          '    cursor: pointer;\n' +
          '    user-select: none;\n' +
          '    align-items: center;\n' +
          '    vertical-align: bottom;\n' +
          '    text-align: center;\n' +
          '    overflow: hidden;\n' +
          '    position: relative;\n' +
          '}\n' +
          '\n' +
          '.p-button-label {\n' +
          '    flex: 1 1 auto;\n' +
          '}\n' +
          '\n' +
          '.p-button-icon-right {\n' +
          '    order: 1;\n' +
          '}\n' +
          '\n' +
          '.p-button:disabled {\n' +
          '    cursor: default;\n' +
          '}\n' +
          '\n' +
          '.p-button-icon-only {\n' +
          '    justify-content: center;\n' +
          '}\n' +
          '\n' +
          '.p-button-icon-only .p-button-label {\n' +
          '    visibility: hidden;\n' +
          '    width: 0;\n' +
          '    flex: 0 0 auto;\n' +
          '}\n' +
          '\n' +
          '.p-button-vertical {\n' +
          '    flex-direction: column;\n' +
          '}\n' +
          '\n' +
          '.p-button-icon-bottom {\n' +
          '    order: 2;\n' +
          '}\n' +
          '\n' +
          '.p-button-group .p-button {\n' +
          '    margin: 0;\n' +
          '}\n' +
          '\n' +
          '.p-button-group .p-button:not(:last-child) {\n' +
          '    border-right: 0 none;\n' +
          '}\n' +
          '\n' +
          '.p-button-group .p-button:not(:first-of-type):not(:last-of-type) {\n' +
          '    border-radius: 0;\n' +
          '}\n' +
          '\n' +
          '.p-button-group .p-button:first-of-type {\n' +
          '    border-top-right-radius: 0;\n' +
          '    border-bottom-right-radius: 0;\n' +
          '}\n' +
          '\n' +
          '.p-button-group .p-button:last-of-type {\n' +
          '    border-top-left-radius: 0;\n' +
          '    border-bottom-left-radius: 0;\n' +
          '}\n' +
          '\n' +
          '.p-button-group .p-button:focus {\n' +
          '    position: relative;\n' +
          '    z-index: 1;\n' +
          '}\n' +
          '\n' +
          '    \n' +
          '.p-inputtext {\n' +
          '    margin: 0;\n' +
          '}\n' +
          '\n' +
          '.p-fluid .p-inputtext {\n' +
          '    width: 100%;\n' +
          '}\n' +
          '\n' +
          '/* InputGroup */\n' +
          '.p-inputgroup {\n' +
          '    display: flex;\n' +
          '    align-items: stretch;\n' +
          '    width: 100%;\n' +
          '}\n' +
          '\n' +
          '.p-inputgroup-addon {\n' +
          '    display: flex;\n' +
          '    align-items: center;\n' +
          '    justify-content: center;\n' +
          '}\n' +
          '\n' +
          '.p-inputgroup .p-float-label {\n' +
          '    display: flex;\n' +
          '    align-items: stretch;\n' +
          '    width: 100%;\n' +
          '}\n' +
          '\n' +
          '.p-inputgroup .p-inputtext,\n' +
          '.p-fluid .p-inputgroup .p-inputtext,\n' +
          '.p-inputgroup .p-inputwrapper,\n' +
          '.p-fluid .p-inputgroup .p-input {\n' +
          '    flex: 1 1 auto;\n' +
          '    width: 1%;\n' +
          '}\n' +
          '\n' +
          '/* Floating Label */\n' +
          '.p-float-label {\n' +
          '    display: block;\n' +
          '    position: relative;\n' +
          '}\n' +
          '\n' +
          '.p-float-label label {\n' +
          '    position: absolute;\n' +
          '    pointer-events: none;\n' +
          '    top: 50%;\n' +
          '    margin-top: -0.5rem;\n' +
          '    transition-property: all;\n' +
          '    transition-timing-function: ease;\n' +
          '    line-height: 1;\n' +
          '}\n' +
          '\n' +
          '.p-float-label textarea ~ label,\n' +
          '.p-float-label .p-mention ~ label {\n' +
          '    top: 1rem;\n' +
          '}\n' +
          '\n' +
          '.p-float-label input:focus ~ label,\n' +
          '.p-float-label input:-webkit-autofill ~ label,\n' +
          '.p-float-label input.p-filled ~ label,\n' +
          '.p-float-label textarea:focus ~ label,\n' +
          '.p-float-label textarea.p-filled ~ label,\n' +
          '.p-float-label .p-inputwrapper-focus ~ label,\n' +
          '.p-float-label .p-inputwrapper-filled ~ label,\n' +
          '.p-float-label .p-tooltip-target-wrapper ~ label {\n' +
          '    top: -0.75rem;\n' +
          '    font-size: 12px;\n' +
          '}\n' +
          '\n' +
          '.p-float-label .p-placeholder,\n' +
          '.p-float-label input::placeholder,\n' +
          '.p-float-label .p-inputtext::placeholder {\n' +
          '    opacity: 0;\n' +
          '    transition-property: all;\n' +
          '    transition-timing-function: ease;\n' +
          '}\n' +
          '\n' +
          '.p-float-label .p-focus .p-placeholder,\n' +
          '.p-float-label input:focus::placeholder,\n' +
          '.p-float-label .p-inputtext:focus::placeholder {\n' +
          '    opacity: 1;\n' +
          '    transition-property: all;\n' +
          '    transition-timing-function: ease;\n' +
          '}\n' +
          '\n' +
          '.p-input-icon-left,\n' +
          '.p-input-icon-right {\n' +
          '    position: relative;\n' +
          '    display: inline-block;\n' +
          '}\n' +
          '\n' +
          '.p-input-icon-left > i,\n' +
          '.p-input-icon-right > i,\n' +
          '.p-input-icon-left > svg,\n' +
          '.p-input-icon-right > svg,\n' +
          '.p-input-icon-left > .p-input-prefix,\n' +
          '.p-input-icon-right > .p-input-suffix {\n' +
          '    position: absolute;\n' +
          '    top: 50%;\n' +
          '    margin-top: -0.5rem;\n' +
          '}\n' +
          '\n' +
          '.p-fluid .p-input-icon-left,\n' +
          '.p-fluid .p-input-icon-right {\n' +
          '    display: block;\n' +
          '    width: 100%;\n' +
          '}\n' +
          '\n' +
          '    \n' +
          '.p-icon {\n' +
          '    display: inline-block;\n' +
          '}\n' +
          '\n' +
          '.p-icon-spin {\n' +
          '    -webkit-animation: p-icon-spin 2s infinite linear;\n' +
          '    animation: p-icon-spin 2s infinite linear;\n' +
          '}\n' +
          '\n' +
          'svg.p-icon {\n' +
          '    pointer-events: auto;\n' +
          '}\n' +
          '\n' +
          'svg.p-icon g,\n' +
          '.p-disabled svg.p-icon {\n' +
          '    pointer-events: none;\n' +
          '}\n' +
          '\n' +
          '@-webkit-keyframes p-icon-spin {\n' +
          '    0% {\n' +
          '        -webkit-transform: rotate(0deg);\n' +
          '        transform: rotate(0deg);\n' +
          '    }\n' +
          '    100% {\n' +
          '        -webkit-transform: rotate(359deg);\n' +
          '        transform: rotate(359deg);\n' +
          '    }\n' +
          '}\n' +
          '\n' +
          '@keyframes p-icon-spin {\n' +
          '    0% {\n' +
          '        -webkit-transform: rotate(0deg);\n' +
          '        transform: rotate(0deg);\n' +
          '    }\n' +
          '    100% {\n' +
          '        -webkit-transform: rotate(359deg);\n' +
          '        transform: rotate(359deg);\n' +
          '    }\n' +
          '}\n' +
          '\n' +
          '}\n',
        type: 'css parsing'
      }

      179 |     ];
      180 |
    > 181 |     render(
          |           ^
      182 |       <LegendComponent
      183 |         viewModel={new BehaviorSubject(model)}
      184 |         ohlcConfig={{ show: true }}

      at VirtualConsole.<anonymous> (node_modules/jest-environment-jsdom/build/index.js:63:23)
      at exports.createStylesheet (node_modules/jsdom/lib/jsdom/living/helpers/stylesheets.js:38:63)
      at HTMLStyleElementImpl._updateAStyleBlock (node_modules/jsdom/lib/jsdom/living/nodes/HTMLStyleElement-impl.js:68:5)
      at HTMLStyleElementImpl._childTextContentChangeSteps (node_modules/jsdom/lib/jsdom/living/nodes/HTMLStyleElement-impl.js:36:12)
      at HTMLStyleElementImpl._insert (node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js:822:14)
      at HTMLStyleElementImpl._replaceAll (node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js:1047:12)
      at HTMLStyleElementImpl.set textContent [as textContent] (node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js:572:14)
      at HTMLStyleElement.set textContent [as textContent] (node_modules/jsdom/lib/jsdom/living/generated/Node.js:678:44)
      at k (node_modules/exchange-elements/dist/styles-_x7fhVrZ.cjs:27:4959)
      at node_modules/exchange-elements/dist/styles-_x7fhVrZ.cjs:435:5441
      at node_modules/exchange-elements/dist/styles-_x7fhVrZ.cjs:27:1840
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23150:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24931:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24891:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24878:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24866:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27039:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:26984:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26769:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at act (node_modules/react/cjs/react.development.js:2582:11)
      at node_modules/@testing-library/react/dist/act-compat.js:63:25
      at renderRoot (node_modules/@testing-library/react/dist/pure.js:159:26)
      at render (node_modules/@testing-library/react/dist/pure.js:246:10)
      at Object.<anonymous> (src/components/__tests__/LegendComponent.test.tsx:181:11)

    console.error
      The above error occurred in the <BTextContainer> component:
      
          at C:\Users\ShkinderDV\moex-chart\node_modules\exchange-elements\dist\v2.cjs.js:43:1809
          at button
          at C:\Users\ShkinderDV\moex-chart\node_modules\exchange-elements\dist\styles-_x7fhVrZ.cjs:574:3079
          at ce (C:\Users\ShkinderDV\moex-chart\node_modules\exchange-elements\dist\v2.cjs.js:43:3394)
          at div
          at section
          at LegendComponent (C:\Users\ShkinderDV\moex-chart\src\components\Legend\index.tsx:24:35)
      
      Consider adding an error boundary to your tree to customize error handling behavior.
      Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.

      179 |     ];
      180 |
    > 181 |     render(
          |           ^
      182 |       <LegendComponent
      183 |         viewModel={new BehaviorSubject(model)}
      184 |         ohlcConfig={{ show: true }}

      at logCapturedError (node_modules/react-dom/cjs/react-dom.development.js:18687:23)
      at update.callback (node_modules/react-dom/cjs/react-dom.development.js:18720:5)
      at callCallback (node_modules/react-dom/cjs/react-dom.development.js:13923:12)
      at commitUpdateQueue (node_modules/react-dom/cjs/react-dom.development.js:13944:9)
      at commitLayoutEffectOnFiber (node_modules/react-dom/cjs/react-dom.development.js:23391:13)
      at commitLayoutMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24688:9)
      at commitLayoutEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24674:7)
      at commitLayoutEffects (node_modules/react-dom/cjs/react-dom.development.js:24612:3)
      at commitRootImpl (node_modules/react-dom/cjs/react-dom.development.js:26823:5)
      at commitRoot (node_modules/react-dom/cjs/react-dom.development.js:26682:5)
      at performSyncWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:26117:3)
      at flushSyncCallbacks (node_modules/react-dom/cjs/react-dom.development.js:12042:22)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27060:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:26984:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26769:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at act (node_modules/react/cjs/react.development.js:2582:11)
      at node_modules/@testing-library/react/dist/act-compat.js:63:25
      at renderRoot (node_modules/@testing-library/react/dist/pure.js:159:26)
      at render (node_modules/@testing-library/react/dist/pure.js:246:10)
      at Object.<anonymous> (src/components/__tests__/LegendComponent.test.tsx:181:11)

    console.error
      The above error occurred in the <BTextContainer> component:
      
          at C:\Users\ShkinderDV\moex-chart\node_modules\exchange-elements\dist\v2.cjs.js:43:1809
          at button
          at C:\Users\ShkinderDV\moex-chart\node_modules\exchange-elements\dist\styles-_x7fhVrZ.cjs:574:3079
          at ce (C:\Users\ShkinderDV\moex-chart\node_modules\exchange-elements\dist\v2.cjs.js:43:3394)
          at div
          at section
          at LegendComponent (C:\Users\ShkinderDV\moex-chart\src\components\Legend\index.tsx:24:35)
      
      Consider adding an error boundary to your tree to customize error handling behavior.
      Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.

      179 |     ];
      180 |
    > 181 |     render(
          |           ^
      182 |       <LegendComponent
      183 |         viewModel={new BehaviorSubject(model)}
      184 |         ohlcConfig={{ show: true }}

      at logCapturedError (node_modules/react-dom/cjs/react-dom.development.js:18687:23)
      at update.callback (node_modules/react-dom/cjs/react-dom.development.js:18720:5)
      at callCallback (node_modules/react-dom/cjs/react-dom.development.js:13923:12)
      at commitUpdateQueue (node_modules/react-dom/cjs/react-dom.development.js:13944:9)
      at commitLayoutEffectOnFiber (node_modules/react-dom/cjs/react-dom.development.js:23391:13)
      at commitLayoutMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24688:9)
      at commitLayoutEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24674:7)
      at commitLayoutEffects (node_modules/react-dom/cjs/react-dom.development.js:24612:3)
      at commitRootImpl (node_modules/react-dom/cjs/react-dom.development.js:26823:5)
      at commitRoot (node_modules/react-dom/cjs/react-dom.development.js:26682:5)
      at performSyncWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:26117:3)
      at flushSyncCallbacks (node_modules/react-dom/cjs/react-dom.development.js:12042:22)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27060:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:26984:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26769:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at act (node_modules/react/cjs/react.development.js:2582:11)
      at node_modules/@testing-library/react/dist/act-compat.js:63:25
      at renderRoot (node_modules/@testing-library/react/dist/pure.js:159:26)
      at render (node_modules/@testing-library/react/dist/pure.js:246:10)
      at Object.<anonymous> (src/components/__tests__/LegendComponent.test.tsx:181:11)

  ● LegendComponent › должен вызывать обработчики настроек и удаления

    ReferenceError: ResizeObserver is not defined

      179 |     ];
      180 |
    > 181 |     render(
          |           ^
      182 |       <LegendComponent
      183 |         viewModel={new BehaviorSubject(model)}
      184 |         ohlcConfig={{ show: true }}

      at node_modules/exchange-elements/dist/v2.cjs.js:43:968
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23150:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24931:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24891:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24878:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24866:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27039:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:26984:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26769:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at act (node_modules/react/cjs/react.development.js:2582:11)
      at node_modules/@testing-library/react/dist/act-compat.js:63:25
      at renderRoot (node_modules/@testing-library/react/dist/pure.js:159:26)
      at render (node_modules/@testing-library/react/dist/pure.js:246:10)
      at Object.<anonymous> (src/components/__tests__/LegendComponent.test.tsx:181:11)

Test Suites: 2 failed, 2 passed, 4 total
Tests:       1 failed, 23 passed, 24 total
Snapshots:   0 total
Time:        19.003 s, estimated 21 s
Ran all test suites related to files matching /C:\\Users\\ShkinderDV\\moex-chart\\jest.config.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\components\\ChartTooltip\\index.tsx|C:\\Users\\ShkinderDV\\moex-chart\\src\\components\\Legend\\index.tsx|C:\\Users\\ShkinderDV\\moex-chart\\src\\components\\__tests__\\ChartTooltip.test.tsx|C:\\Users\\ShkinderDV\\moex-chart\\src\\components\\__tests__\\LegendComponent.test.tsx|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\ContainerManager.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Legend.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\__tests__\\ContainerManager.test.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\__tests__\\Legend.test.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\types\\ohlc.ts|C:\\Users\\ShkinderDV\\moex-chart\\stories\\MB\\MB.stories.tsx|C:\\Users\\ShkinderDV\\moex-chart\\stories\\MXT\\MXT.stories.tsx|C:\\Users\\ShkinderDV\\moex-chart\\stories\\TradeRadar\\TradeRadar.stories.tsx/i.
husky - pre-commit script failed (code 1)