mirror of
https://github.com/status-im/status-react.git
synced 2025-01-10 11:06:25 +00:00
72d43ba745
feat: configuration setup for visual tests Co-authored-by: Erik Seppanen <esep@protonmail.com>
23 lines
682 B
JavaScript
23 lines
682 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; |