Augment this interface to register custom artifact types that your tests can produce.
Each custom artifact should extend TestArtifactBase and include a unique type discriminator property.
Remarks
Use a Symbol as the registry key to guarantee uniqueness
The type property should follow the pattern 'package-name:artifact-name', 'internal:' is a reserved prefix
Use attachments to include files or data; extend TestAttachment for custom metadata
location property is automatically injected to indicate where the artifact was created
Example
// Define custom attachment type for generated PDF interfacePDFAttachmentextendsTestAttachment { contentType: 'application/pdf' body: Uint8Array pageCount: number fileSize: number }
Advanced
Registry for custom test artifact types.
Augment this interface to register custom artifact types that your tests can produce.
Each custom artifact should extend
TestArtifactBaseand include a uniquetypediscriminator property.Remarks
Symbolas the registry key to guarantee uniquenesstypeproperty should follow the pattern'package-name:artifact-name','internal:'is a reserved prefixattachmentsto include files or data; extendTestAttachmentfor custom metadatalocationproperty is automatically injected to indicate where the artifact was createdExample