2023-06-19 13:39:12 +00:00
|
|
|
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,
|
|
|
|
});
|
2022-11-20 23:46:04 +00:00
|
|
|
}
|
2023-06-19 13:39:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = CustomDetoxEnvironment;
|