I am having my .ps1 saved in directory1 and mt .tests.ps1 in directory2 with in the same folder. Folder view
In general we use to write the script as follows when the test file and script file are in the same folder
Join-Path : Cannot find path 'D:\PowerShell\Pester\TestPester\Pester\PowerShellTest1.tests.ps1' because it does not exist.
At D:\PowerShell\Pester\TestPester\MyProject.Tests\PowerShellTest1.tests.ps1:3 char:6