TechDocsAddonTester.withEntity()
Home > @backstage/plugin-techdocs-addons-test-utils
> TechDocsAddonTester
> withEntity
Provide a mock entity if your Addon needs it. This also controls the base path at which the Addon is rendered.
Signature:
withEntity(entity: Partial<TechDocsEntityMetadata>): this;
Parameters
Parameter |
Type |
Description |
---|---|---|
entity |
Partial<TechDocsEntityMetadata> |
this