Attach a value or a file from disk to the overall test run. Some reporters show global attachments. Either [`option: path`] or [`option: body`] must be specified, but not both.
See [`method: TestInfo.attach`] if you are looking for test-scoped attachments.
:::note
[`method: GlobalInfo.attach`] automatically takes care of copying attached files to a
location that is accessible to reporters. You can safely remove the attachment
after awaiting the attach call.
:::
### param: GlobalInfo.attach.name
-`name`<[string]> Attachment name.
### option: GlobalInfo.attach.body
-`body` ?<[string]|[Buffer]> Attachment body. Mutually exclusive with [`option: path`].
### option: GlobalInfo.attach.contentType
-`contentType` ?<[string]> Optional content type of this attachment to properly present in the report, for example `'application/json'` or `'image/png'`. If omitted, content type is inferred based on the [`option: path`], or defaults to `text/plain` for [string] attachments and `application/octet-stream` for [Buffer] attachments.
### option: GlobalInfo.attach.path
-`path` ?<[string]> Path on the filesystem to the attached file. Mutually exclusive with [`option: body`].