[No QA] fix(ci/prettier): Export 'hasAction' is not defined#77194
[No QA] fix(ci/prettier): Export 'hasAction' is not defined#77194marcaaron merged 2 commits intoExpensify:mainfrom
Conversation
e309e3f to
5a3466e
Compare
5a3466e to
5625a10
Compare
|
@jayeshmangwani 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] |
|
Closes #77189 |
8810950 to
5625a10
Compare
| # shellcheck disable=SC2016 | ||
| echo 'Error: Prettier diff detected! Please run `npm run prettier` and commit the changes.' | ||
| exit 1 | ||
| fi |
There was a problem hiding this comment.
hmm I don't think we want to remove all of this. We should still be logging when there is a diff and ideally also log the diff.
There was a problem hiding this comment.
ok I'll restore it to its previous state
There was a problem hiding this comment.
Maybe better to do npm run prettier -- --log-level error here but make sure that it echo's the same message if there is output.
| function isAvailableAsync(): Promise<boolean>; | ||
| function requestReview(): Promise<void>; | ||
|
|
||
| export {hasAction, isAvailableAsync, requestReview}; |
There was a problem hiding this comment.
I don't understand why this would cause an error one way but not the other way.
There was a problem hiding this comment.
Seems like a prettier bug maybe?
There was a problem hiding this comment.
because in declare block you're not actually defining the code, you only describe it shape that's why we get this error Export 'hasAction' is not defined
| # shellcheck disable=SC2016 | ||
| echo 'Error: Prettier diff detected! Please run `npm run prettier` and commit the changes.' | ||
| exit 1 | ||
| fi |
There was a problem hiding this comment.
Maybe better to do npm run prettier -- --log-level error here but make sure that it echo's the same message if there is output.
marcaaron
left a comment
There was a problem hiding this comment.
LGTM. Thanks! Weird bug. Prettier parser should not be throwing this error I think. But the change looks good.
Codecov Report✅ All modified and coverable lines are covered by tests. |
|
We can skip the checklist on this one since this isn't changing any code. Thanks @gelocraft 🙇 |
|
looks like typecheck failed but the error is unrelated |
|
I feel like maybe we should do: in |
let's just leave the logging thing to CI |
it's fair. some probably want to get hypnotized by the thousand files scrolling past them 👍 |
|
ESLint check is almost done |
|
@marcaaron looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
Not emergency. typescript errors are unrelated. |
|
🚀 Deployed to staging by https://github.com/marcaaron in version: 9.2.75-0 🚀
|
|
🚀 Deployed to staging by https://github.com/marcaaron in version: 9.2.75-0 🚀
|
|
🚀 Deployed to staging by https://github.com/marcaaron in version: 9.2.77-0 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.2.77-1 🚀
|
Explanation of Change
Fixed Issues
$ #77189
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari