Mock ResizeObserver to fix failing tests

Description

Tests are currently failing with:

ReferenceError: ResizeObserver is not defined 129 | ); 130 | > 131 | const renderPOLineForm = (props = {}) => render( | ^ 132 | <Form 133 | onSubmit={jest.fn} 134 | render={() => ( at new ResizeObserver (node_modules/@folio/stripes-components/lib/TextArea/TextArea.js:127:31)

Caused by stripes-components PR#2181

Environment

None

Potential Workaround

None

Checklist

hide

Activity

Show:

Zak Burke March 16, 2024 at 3:06 AM

Zak Burke March 12, 2024 at 4:02 PM

This specific issue will show up in any ticket that requires rebuilding yarn.lock, so whether you choose to fix it here (in a ticket that is specifically about rebuilding yarn.lock ) or in a ticket that requires rebuilding yarn.lock like https://folio-org.atlassian.net/browse/UIU-3072 is entirely up to you slightly smiling face

Priyanka Terala March 12, 2024 at 12:51 PM
Edited


I think the problem reported here would probably be fixed in the scope of https://folio-org.atlassian.net/browse/UIU-3072
cc

Zak Burke March 4, 2024 at 4:08 PM

I tried to fix this in PR #2617, which does nothing except update yarn.lock, but additional tests there fail. Unfortunately, I do not have time to investigate it further.

Done

Details

Assignee

Reporter

Priority

Sprint

Development Team

Volaris

Release

Quesnelia (R1 2024)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created February 20, 2024 at 2:26 AM
Updated March 20, 2024 at 3:27 PM
Resolved March 16, 2024 at 3:06 AM
TestRail: Cases
TestRail: Runs

Flag notifications