You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
detox init removes the contents of package.json if it contains invalid JSON.
Steps to Reproduce
Add something invalid to package.json, (e.g. a rogue '//') and run detox init -r jest. The contents of package.json with be undefined.
Detox, Node, Device, Xcode and macOS Versions
Detox: 14.4.1
Device and verbose Detox logs
$ detox init -r jest
detox[37796] ERROR: [init.js] Failed to create e2e folder, because it already exists at path: /Users/foo/proj/e2e
detox[37796] INFO: [init.js] Patching package.json at path: /Users/proj/package.json
detox[37796] ERROR: [init.js] Failed to parse package.json due to an error:
/Users/foo/proj/package.json: Unexpected token } in JSON at position 5167
detox[37796] INFO: [init.js] json["detox"]["test-runner"] = "jest";
iOS build logs
The text was updated successfully, but these errors were encountered:
Description
detox init
removes the contents ofpackage.json
if it contains invalid JSON.Steps to Reproduce
Add something invalid to
package.json
, (e.g. a rogue '//') and rundetox init -r jest
. The contents ofpackage.json
with beundefined
.Detox, Node, Device, Xcode and macOS Versions
Device and verbose Detox logs
iOS build logs
The text was updated successfully, but these errors were encountered: