Files
iNaturalistReactNative/e2e/environment.js
Johannes Klein 8ae7f7199b Add detox configs
2022-12-03 13:16:16 +01:00

25 lines
652 B
JavaScript

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;