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
As a result of this issue, some lessons have been learnt with regards to classes definied in modules. To test, the Pester fixture must be InModuleScope. This is because of the limiting use of using module , which because it has to be at the top of a file, always depends on the installed version of the module, not the module being tested.
In the context of a test fixture, having:
using module Elizium.Krayola
at the top of the file, just uses the installed version not the tested version. So if we removed the installed version, that using statement will fail. This means we can't use the using statement in our test.
The way to fix this is to re-write the tests so that everything is running InModuleScope, which means any class defined can be referenced directly.
No description provided.
The text was updated successfully, but these errors were encountered: