-
Notifications
You must be signed in to change notification settings - Fork 39
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
chore: re-write some files to typescript - part 2 #488
chore: re-write some files to typescript - part 2 #488
Conversation
|
||
export type AssertViewResult = ImageDiffError; | ||
|
||
export interface TestResult { |
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.
В этом файле многие типы вручную описаны, хотя похожие типы есть в hermione. Не делал импортов специально, чтобы не добавлять связности между пакетами. В будущем можно будет подрефакторить этот момент и сделать, например, адаптер
@@ -126,7 +163,7 @@ module.exports = class TestAdapter { | |||
return {path: expectedPath, reused: false}; | |||
} | |||
|
|||
getImagesFor(status, stateName) { | |||
getImagesFor(status: TestStatus, stateName?: string): ImageInfo | undefined { |
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.
В этом методе условия стали чуть строже, а вместо {} возвращается undefined
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.
Почему undefined
а не void
?
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.
/ok
d7efc5b
to
e438e5a
Compare
What's done?
Why?