[code-infra] The parser of the describe conformance consider skip
but not only
config
#42832
Labels
scope: code-infra
Specific to the core-infra product
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 parsingSearch keywords:
The text was updated successfully, but these errors were encountered: