Skip to content

Commit

Permalink
Correction in the URL
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanBijkerk committed Aug 18, 2023
1 parent d7c10cc commit 9a7ce07
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Unit testing serves as a crucial method to ensure the quality of code. This prin
## Grasping Mocking in Pester
For those unfamiliar with Pester and its mocking capabilities, here's a concise introduction to Pester's mocking features. As outlined in the documentation, Pester offers a set of mocking functions that streamline the process of simulating dependencies and validating behaviors. These functions enable you to effectively "shim" data layers or mock intricate functions that already possess their own tests.

Source: [Mock](https://pester.dev/docs/commands/Mock){target:"_blank"}
Source: [Mock](https://pester.dev/docs/commands/Mock){:target="_blank"}

When conducting code tests, the objective is to validate the logic of a script or function without actually executing it. Imagine a scenario where a script is designed to delete user accounts from Azure Active Directory. Naturally, during testing, you wouldn't want actual deletions to occur. Mocking a commandlet replaces its genuine execution during tests, granting you the ability to manipulate behaviors and create diverse test scenarios.

Expand Down

0 comments on commit 9a7ce07

Please sign in to comment.