You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Pester setup for mocking Get-ZLocationDatabaseFilePath and Get-ZLocationLegacyBackupFilePath doesn't work: the mocked functions are never actually called and tests run using my actual database.
The easiest way to confirm this is lock the production database and run the tests- if they were using the testing database, this wouldn't be an issue, but instead database operations fail. Other tests such as checking mocks are actually called suggest the same thing.
The text was updated successfully, but these errors were encountered:
#93 has a fix of sorts in that EnsureIndex() will not be run against a database file that already exists, so the only contact between tests and a user's real database should be a Test-Path.
The Pester setup for mocking
Get-ZLocationDatabaseFilePath
andGet-ZLocationLegacyBackupFilePath
doesn't work: the mocked functions are never actually called and tests run using my actual database.The easiest way to confirm this is lock the production database and run the tests- if they were using the testing database, this wouldn't be an issue, but instead database operations fail. Other tests such as checking mocks are actually called suggest the same thing.
The text was updated successfully, but these errors were encountered: