Skip to content

Commit

Permalink
fix(detox): use a version of Detox that works with React Native 0.76/…
Browse files Browse the repository at this point in the history
…Expo v52 (#29679)

## Current Behavior

After adding `@nx/detox` to a newly-generated project, Detox E2E apps
will either fail to build or run with intermittent crashes on Android.

## Expected Behavior

Detox E2E apps should run as they normally did with React Native
0.74/Expo v51.
  • Loading branch information
hassankhan authored Jan 27, 2025
1 parent 4100515 commit ed186fd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions packages/detox/migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,19 @@
"alwaysAddToPackageJson": false
}
}
},
"20.4.0": {
"version": "20.4.0-beta.2",
"packages": {
"detox": {
"version": "~20.31.0",
"alwaysAddToPackageJson": false
},
"@config-plugins/detox": {
"version": "~9.0.0",
"alwaysAddToPackageJson": false
}
}
}
}
}
4 changes: 2 additions & 2 deletions packages/detox/src/utils/versions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const nxVersion = require('../../package.json').version;

export const detoxVersion = '~20.28.0';
export const detoxVersion = '~20.31.0';
export const testingLibraryJestDom = '~6.6.3';
export const configPluginsDetoxVersion = '~8.0.0'; // only required for expo
export const configPluginsDetoxVersion = '~9.0.0'; // only required for expo

0 comments on commit ed186fd

Please sign in to comment.