Skip to content

[code-infra] The parser of the describe conformance consider skip but not only config #42832

Open
@alexfauquette

Description

@alexfauquette

Found while reviewing mui/mui-x#13647

If you use the describeConformance(..., () => ({ only: ['themeDefaultProps'})), all the attributes will be added to the API page instead of just the theme dfault props one.

THe reason is that the script filter the skipped test but do not take into consideration the only:

https://github.com/mui/material-ui/blob/master/packages/api-docs-builder/utils/parseTest.ts/#L164-L185

Solution can either be to remove only from describe conformance, or take only into consideration in the parsing

Search keywords:

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: code-infraSpecific to the core-infra product

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions