Skip to content

Commit

Permalink
Merge pull request Expensify#35985 from margelo/dev/e2e-tests-debugga…
Browse files Browse the repository at this point in the history
…bility

[NoQA] e2e tests: improve logging in error case
  • Loading branch information
mountiny authored Feb 7, 2024
2 parents 6021ef0 + ca0c103 commit 27904d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/e2ePerformanceTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,10 @@ jobs:
if: failure()
run: |
echo ${{ steps.schedule-awsdf-main.outputs.data }}
cat "./mainResults/Host_Machine_Files/\$WORKING_DIRECTORY/Test spec output.txt"
unzip "Customer Artifacts.zip" -d mainResults
cat ./mainResults/Host_Machine_Files/\$WORKING_DIRECTORY/debug.log
cat "./mainResults/Host_Machine_Files/\$WORKING_DIRECTORY/logcat.txt" || true
cat ./mainResults/Host_Machine_Files/\$WORKING_DIRECTORY/debug.log || true
cat "./mainResults/Host_Machine_Files/\$WORKING_DIRECTORY/Test spec output.txt" || true
- name: Unzip AWS Device Farm results
if: ${{ always() }}
Expand Down
5 changes: 4 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
require('dotenv').config();

const IS_E2E_TESTING = process.env.E2E_TESTING === 'true';

const defaultPresets = ['@babel/preset-react', '@babel/preset-env', '@babel/preset-flow', '@babel/preset-typescript'];
const defaultPlugins = [
// Adding the commonjs: true option to react-native-web plugin can cause styling conflicts
Expand Down Expand Up @@ -72,7 +74,8 @@ const metro = {
],
env: {
production: {
plugins: [['transform-remove-console', {exclude: ['error', 'warn']}]],
// Keep console logs for e2e tests
plugins: IS_E2E_TESTING ? [] : [['transform-remove-console', {exclude: ['error', 'warn']}]],
},
},
};
Expand Down

0 comments on commit 27904d1

Please sign in to comment.