How do you test a powershell modules code without removing and re-importing the module?

Say you have a .psm1 file, you’ve imported it as a module, you change some code.
I want to test it - If i’ve imported a module it’s going to be using the old code. How do I get the new code without running import-module again?

It does not work without calling Import-Module again. You just use the parameter -Force to force PowerShell to really re-import the module. :man_shrugging:t3:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.