SAP / open-ux-tools

Enable community collaboration to jointly promote and facilitate best in class tooling capabilities
Apache License 2.0
83 stars 41 forks source link

TBI - Replace Enzyme with React testing library #833

Open devinea opened 1 year ago

devinea commented 1 year ago

Description (include screenshots)

Enzyme does not support newer versions of react greater than 16. As a result it is necessary to use an alternative testing library. Recommended is https://testing-library.com/docs/react-testing-library/intro There is a migration guide here. https://testing-library.com/docs/react-testing-library/migrate-from-enzyme/

Any new react tests should be written using react-testing-library and NOT enzyme. Existing tests will need to be written converted over time to react-testing-library

Value

Optional - details on how this technical backlog item provides value to end-users or dev team eg. Performance, Quality, Maintainability. This will help determine the ranking in relation to feature development

Architecture Elaboration

Does it requires architecture elaboration?

Notes

Tasks

devinea commented 1 year ago

FYI @SAP/ux-tools-ui-components

tobiasqueck commented 1 year ago

Existing tests will need to be written converted over time to react-testing-library

@devinea how far along are with that and what is the timeline for remaining tests?

devinea commented 1 year ago

Existing tests will need to be written converted over time to react-testing-library

@devinea how far along are with that and what is the timeline for remaining tests?

Not much progress on this and currently no fix timeline. We should review this.