Enhance the documentation of the commonTest utilities by incorporating examples and cleaning up the formatting, similar to the illustration provided below.
/**
* Helper for asserting slots.
*
* Note that this helper should be used within a describe block.
*
* @example
* describe("slots", () => {
* slots("calcite-stack", SLOTS)
* })
*
* @param {string} componentTagOrHTML - The component tag or HTML markup to test against.
* @param {Record<string, string> | string[]} slots - A component's SLOTS resource object or an array of slot names.
* @param {boolean} includeDefaultSlot - When true, it will run assertions on the default slot.
*/
export function slots(
Description
Enhance the documentation of the
commonTest utilities
by incorporating examples and cleaning up the formatting, similar to the illustration provided below.Proposed Advantages
Readability and ease of use.
Which Component
commonTest utilities
Relevant Info
No response
Calcite package