-
Notifications
You must be signed in to change notification settings - Fork 763
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upgrade android and JS to RN@68 * simplify logic * upgrade to jest@27 * fix eventsRegistry tests * upgrade example ios to RN68 * update detox
- Loading branch information
1 parent
e634fa5
commit e8803f5
Showing
25 changed files
with
911 additions
and
320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"testRunner": "jest", | ||
"runnerConfig": "e2e/config.json", | ||
"skipLegacyWorkersInjection": true, | ||
"devices": { | ||
"simulator": { | ||
"type": "ios.simulator", | ||
"device": { | ||
"type": "iPhone 12 Pro Max" | ||
} | ||
} | ||
}, | ||
"apps": { | ||
"ios.release": { | ||
"name": "RNNotifications", | ||
"type": "ios.app", | ||
"binaryPath": "example/ios/DerivedData/NotificationsExampleApp/Build/Products/Release-iphonesimulator/NotificationsExampleApp.app", | ||
"build": "RCT_NO_LAUNCH_PACKAGER=true xcodebuild build -scheme NotificationsExampleApp_release -workspace example/ios/NotificationsExampleApp.xcworkspace -sdk iphonesimulator -configuration Release -derivedDataPath example/ios/DerivedData/NotificationsExampleApp ONLY_ACTIVE_ARCH=YES -quiet -UseModernBuildSystem=NO" | ||
}, | ||
"ios.debug": { | ||
"name": "RNNotificationsDebug", | ||
"type": "ios.app", | ||
"binaryPath": "example/ios/DerivedData/NotificationsExampleApp/Build/Products/Debug-iphonesimulator/NotificationsExampleApp.app", | ||
"build": "RCT_NO_LAUNCH_PACKAGER=true xcodebuild build -scheme NotificationsExampleApp -workspace example/ios/NotificationsExampleApp.xcworkspace -sdk iphonesimulator -configuration Debug -derivedDataPath example/ios/DerivedData/NotificationsExampleApp ONLY_ACTIVE_ARCH=YES -quiet -UseModernBuildSystem=NO" | ||
} | ||
}, | ||
"configurations": { | ||
"ios.sim.release": { | ||
"device": "simulator", | ||
"app": "ios.release" | ||
}, | ||
"ios.sim.debug": { | ||
"device": "simulator", | ||
"app": "ios.debug" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
{ | ||
"setupTestFrameworkScriptFile" : "./init.js", | ||
"testEnvironment": "node", | ||
"bail": true, | ||
"maxWorkers": 1, | ||
"testEnvironment": "./environment", | ||
"testRunner": "jest-circus/runner", | ||
"testTimeout": 120000, | ||
"reporters": ["detox/runners/jest/streamlineReporter"], | ||
"verbose": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
const { | ||
DetoxCircusEnvironment, | ||
SpecReporter, | ||
WorkerAssignReporter, | ||
} = require('detox/runners/jest-circus'); | ||
|
||
class CustomDetoxEnvironment extends DetoxCircusEnvironment { | ||
constructor(config, context) { | ||
super(config, context); | ||
|
||
// Can be safely removed, if you are content with the default value (=300000ms) | ||
this.initTimeout = 300000; | ||
|
||
// This takes care of generating status logs on a per-spec basis. By default, Jest only reports at file-level. | ||
// This is strictly optional. | ||
this.registerListeners({ | ||
SpecReporter, | ||
WorkerAssignReporter, | ||
}); | ||
} | ||
} | ||
|
||
module.exports = CustomDetoxEnvironment; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.