Rewrite react-conformance API to be more extensible/modular #21665
Labels
Area: Testing
Fluent UI react (v8)
Issues about @fluentui/react (v8)
Fluent UI react-components (v9)
Resolution: Soft Close
Soft closing inactive issues over a certain period
Type: Epic
The API of
@fluentui/react-conformance
was designed with the intent of being extensible, but it's not a very good design. Also, it has the issue today of including tests in the core package that are actually specific to v8/v9/v0 (which can cause dependency graph issues and is generally unhelpful) and introducing enzyme+node types into the global namespace anywhere it's imported.The new API will probably look something like this, inspired by babel:
This will be a breaking change to the conformance package.
To help stage it, we may temporarily stop publishing the package (allowing all the breaking changes to be released together when ready).react-conformance is still 0.x, meaning we can break things in minors. We might release 1.0 once the refactor is done.Conversion from enzyme to testing-library (#21663) will probably be done at the same time since it affects the public API.
Work items
Related items
The text was updated successfully, but these errors were encountered: