-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[TS migration] Migrate awaitStagingDeploysTest to Typescript #37084
[TS migration] Migrate awaitStagingDeploysTest to Typescript #37084
Conversation
const defaultReturn = Promise.resolve({data: {workflow_runs: []}}); | ||
|
||
if (!_.has(args, 'workflow_id')) { | ||
if (!args.workflow_id) { |
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 logic is a bit different, this is more accurate:
if (!('workflow_id' in args)) {
But the suggested change should work, right?
@@ -50,6 +67,8 @@ beforeAll(() => { | |||
}, | |||
}, | |||
}; | |||
|
|||
// @ts-expect-error TODO: Remove this once GithubUtils (https://github.com/Expensify/App/issues/25382) is migrated to TypeScript. |
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.
Let's hold this PR for now
@ruben-rebelo This PR is not on hold anymore, let's move with it to the finish line! |
@blazejkustra I've updated this PR, please have a look |
rest: { | ||
// @ts-expect-error This error was removed because getting the rest of the data from internalOctokit makes the test to break |
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.
Why is this needed?
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.
This is needed because InternalOctoKit requires all the data of the object to be passed but in this case for the unit tests we shall only pass listWorkflowRuns otherwise it will break the test
@ruben-rebelo FYI Typecheck is failing |
@paultsimura Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
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.
Test files migration. Approving ✔️
We did not find an internal engineer to review this PR, trying to assign a random engineer to #25299 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
Reviewer Checklist
Screenshots/Videos❌ internal tooling |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/marcaaron in version: 1.4.59-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.60-13 🚀
|
Details
[TS migration] Migrate *awaitStagingDeploysTest to TypeScript
Fixed Issues
$ #25299
PROPOSAL: N/A
Tests
Verify that no errors appear in the JS console
Run awaitStagingDeploysTest unit test works as before
Offline tests
N/A
QA Steps
Same as in the Tests section.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
N/a
Android: mWeb Chrome
N/a
iOS: Native
N/a
iOS: mWeb Safari
N/a
MacOS: Chrome / Safari
N/a
MacOS: Desktop
N/a