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
I cannot find a way to simultaneously mock a module and also assert the result of a task in my unit test. I would like to mock an external package, and assert the result of the task.
I can assert the result of task using MockTestRunner.stdout/MockTestRunner.succeeded etc, but I cannot mock packages using MockTestRunner.
I can mock packages using TaskMockRunner.registerMock, but cannot assert the results as it does not have an API like MockTestRunner.
Expected behaviour
Is there a way to do both mock external packages and assert results at the same time?
Logs
The text was updated successfully, but these errors were encountered:
Environment
azure-pipelines-task-lib version: 3.3.1
Issue Description
I cannot find a way to simultaneously mock a module and also assert the result of a task in my unit test. I would like to mock an external package, and assert the result of the task.
I can assert the result of task using MockTestRunner.stdout/MockTestRunner.succeeded etc, but I cannot mock packages using MockTestRunner.
I can mock packages using TaskMockRunner.registerMock, but cannot assert the results as it does not have an API like MockTestRunner.
Expected behaviour
Is there a way to do both mock external packages and assert results at the same time?
Logs
The text was updated successfully, but these errors were encountered: