-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Advanced testing tools: improvements #1816
Conversation
max-vasin
commented
Apr 15, 2021
- saga: mockable commands implementations
- saga: mockable queries implementations
- saga: convenient failure output
}) | ||
|
||
test('shouldExecuteCommand failure output should contain all executed commands', async () => { | ||
try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that way we will never know if shouldExecuteCommand method stops to fail. And the same for the next two tests.
|
||
if (environment.isExecuted()) { | ||
throw Error( | ||
`Command implementation cannot be mocked if the test was executed.` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`Command implementation cannot be mocked if the test was executed.` | |
`Command implementation cannot be mocked if the test is finished.` |
?
/cc @EugeniyBurmistrov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original phrase and the edit mean different things. The edit is indeed correct if the message's indended meaning was "is already finished" and not "was invoked and possibly still runs".