Skip to content

Commit

Permalink
Fix JS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewGable committed Oct 25, 2024
1 parent 2d1cacb commit 77aa833
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12726,7 +12726,7 @@ async function run() {
message += `🚀`;
message += `\n\nplatform | result\n---|---\n🤖 android 🤖|${androidResult}\n🖥 desktop 🖥|${desktopResult}`;
message += `\n🍎 iOS 🍎|${iOSResult}\n🕸 web 🕸|${webResult}`;
message += `\n🤖 android HybridApp 🤖|${androidHybridResult}\n🍎 iOS HybridApp 🍎|${iOSHybridResult}`;
message += `\n🤖🔄 android HybridApp 🤖🔄|${androidHybridResult}\n🍎🔄 iOS HybridApp 🍎🔄|${iOSHybridResult}`;
if (deployVerb === 'Cherry-picked' && !/no ?qa/gi.test(prTitle ?? '')) {
// eslint-disable-next-line max-len
message +=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async function run() {
message += `🚀`;
message += `\n\nplatform | result\n---|---\n🤖 android 🤖|${androidResult}\n🖥 desktop 🖥|${desktopResult}`;
message += `\n🍎 iOS 🍎|${iOSResult}\n🕸 web 🕸|${webResult}`;
message += `\n🤖 android HybridApp 🤖|${androidHybridResult}\n🍎 iOS HybridApp 🍎|${iOSHybridResult}`;
message += `\n🤖🔄 android HybridApp 🤖🔄|${androidHybridResult}\n🍎🔄 iOS HybridApp 🍎🔄|${iOSHybridResult}`;

if (deployVerb === 'Cherry-picked' && !/no ?qa/gi.test(prTitle ?? '')) {
// eslint-disable-next-line max-len
Expand Down
18 changes: 14 additions & 4 deletions tests/unit/markPullRequestsAsDeployedTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,17 @@ function mockGetInputDefaultImplementation(key: string): boolean | string {
case 'DEPLOY_VERSION':
return version;
case 'IOS':
case 'IOS_HYBRID':
case 'ANDROID':
case 'ANDROID_HYBRID':
case 'DESKTOP':
case 'WEB':
return 'success';
case 'DATE':
case 'NOTE':
return '';
default:
throw new Error('Trying to access invalid input');
throw new Error(`Trying to access invalid input: ${key}`);
}
}

Expand Down Expand Up @@ -196,7 +198,9 @@ platform | result
🤖 android 🤖|success ✅
🖥 desktop 🖥|success ✅
🍎 iOS 🍎|success ✅
🕸 web 🕸|success ✅`,
🕸 web 🕸|success ✅
🤖🔄 android HybridApp 🤖🔄|success ✅
🍎🔄 iOS HybridApp 🍎🔄|success ✅`,
issue_number: PR.issue_number,
owner: 'Expensify',
repo: 'App',
Expand Down Expand Up @@ -226,7 +230,9 @@ platform | result
🤖 android 🤖|success ✅
🖥 desktop 🖥|success ✅
🍎 iOS 🍎|success ✅
🕸 web 🕸|success ✅`,
🕸 web 🕸|success ✅
🤖🔄 android HybridApp 🤖🔄|success ✅
🍎🔄 iOS HybridApp 🍎🔄|success ✅`,
issue_number: PRList[i + 1].issue_number,
owner: 'Expensify',
repo: 'App',
Expand Down Expand Up @@ -289,6 +295,8 @@ platform | result
🖥 desktop 🖥|success ✅
🍎 iOS 🍎|success ✅
🕸 web 🕸|success ✅
🤖🔄 android HybridApp 🤖🔄|success ✅
🍎🔄 iOS HybridApp 🍎🔄|success ✅
@Expensify/applauseleads please QA this PR and check it off on the [deploy checklist](https://github.com/Expensify/App/issues?q=is%3Aopen+is%3Aissue+label%3AStagingDeployCash) if it passes.`,
issue_number: 3,
Expand Down Expand Up @@ -325,7 +333,9 @@ platform | result
🤖 android 🤖|skipped 🚫
🖥 desktop 🖥|cancelled 🔪
🍎 iOS 🍎|failed ❌
🕸 web 🕸|success ✅`,
🕸 web 🕸|success ✅
🤖🔄 android HybridApp 🤖🔄|success ✅
🍎🔄 iOS HybridApp 🍎🔄|success ✅`,
issue_number: PR.issue_number,
owner: 'Expensify',
repo: 'App',
Expand Down

0 comments on commit 77aa833

Please sign in to comment.