The Get-TestDriveItem cmdlet gets the item in Pester test drive.
Get-TestDriveItem [[-Path] <String>]
The Get-TestDriveItem cmdlet gets the item in Pester test drive. It does not get the contents of the item at the location unless you use a wildcard character (*) to request all the contents of the item.
The function Get-TestDriveItem is deprecated since Pester v. 4.0 and will be deleted in the next major version of Pester.
This command returns the file MyTestFile.txt located in the folder MyTestFolder what is located under TestDrive.
Specifies the path to an item. The path need to be relative to TestDrive:. This cmdlet gets the item at the specified location. Wildcards are permitted. This parameter is required, but the parameter name ("Path") is optional.
Type: StringParameter Sets: (All)Aliases:Required: FalsePosition: 1Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False