File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,16 @@ module.exports = function() {
4
4
5
5
config . addHook ( cfg => {
6
6
if ( ! cfg . plugins ) cfg . plugins = { } ;
7
- cfg . plugins . tryTo = cfg . plugins . tryTo || { enabled : true } ;
7
+
8
+ try {
9
+ require ( 'codeceptjs/effects' )
10
+ } catch ( err ) {
11
+ console . log ( err . message ) ;
12
+ cfg . plugins . tryTo = cfg . plugins . tryTo || { enabled : true } ;
13
+ cfg . plugins . retryTo = cfg . plugins . retryTo || { enabled : true } ;
14
+ }
15
+
8
16
cfg . plugins . retryFailedStep = cfg . plugins . retryFailedStep || { enabled : true } ;
9
- cfg . plugins . retryTo = cfg . plugins . retryTo || { enabled : true } ;
10
17
cfg . plugins . eachElement = cfg . plugins . eachElement || { enabled : true } ;
11
18
cfg . plugins . pauseOnFail = cfg . plugins . pauseOnFail || { } ;
12
19
cfg . plugins . screenshotOnFail = cfg . plugins . screenshotOnFail || { } ;
You can’t perform that action at this time.
0 commit comments