Skip to content

Commit

Permalink
Merge pull request Expensify#36788 from margelo/dev/fix-e2e-tests-usi…
Browse files Browse the repository at this point in the history
…ng-typescript
  • Loading branch information
mountiny authored Feb 19, 2024
2 parents 1caa218 + 7879b2f commit 50a5198
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/e2ePerformanceTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,21 @@ jobs:
- name: Copy e2e code into zip folder
run: cp -r tests/e2e zip

# Note: we can't reuse the apps tsconfig, as it depends on modules that aren't available in the AWS Device Farm environment
- name: Write tsconfig.json to zip folder
run: |
echo '{
"compilerOptions": {
"target": "ESNext",
"module": "commonjs",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"allowJs": true,
}
}' > zip/tsconfig.json
- name: Zip everything in the zip directory up
run: zip -qr App.zip ./zip

Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/TestSpec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ phases:
test:
commands:
- cd zip
- npm install underscore
- node e2e/testRunner.js -- --skipInstallDeps --buildMode "skip" --skipCheckout --mainAppPath app-e2eRelease.apk --deltaAppPath app-e2edeltaRelease.apk
- npm install underscore ts-node typescript
- npx ts-node e2e/testRunner.js -- --skipInstallDeps --buildMode "skip" --skipCheckout --mainAppPath app-e2eRelease.apk --deltaAppPath app-e2edeltaRelease.apk

artifacts:
- $WORKING_DIRECTORY

0 comments on commit 50a5198

Please sign in to comment.