File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
packages/jest-runner-docs/src Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -99,11 +99,8 @@ module.exports = async function jestRunnerDocs({ testPath, config }) {
99
99
{ testPath, start } ,
100
100
) ;
101
101
102
- let outFile = outfile ;
103
-
104
- if ( ! outFile ) outFile = docksConfig . outfile ;
105
- if ( outFile . hasError ) return outFile . error ;
106
- if ( outFile . skip ) return outFile . skip ;
102
+ if ( outfile . hasError ) return outfile . error ;
103
+ if ( outfile . skip ) return outfile . skip ;
107
104
108
105
const postHook =
109
106
typeof docksConfig . postHook === 'function'
@@ -116,18 +113,18 @@ module.exports = async function jestRunnerDocs({ testPath, config }) {
116
113
pkgRoot,
117
114
jestConfig : config ,
118
115
docksConfig,
119
- outFile ,
120
- outfile : outFile ,
116
+ outfile ,
117
+ outFile : outfile ,
121
118
} ) ,
122
119
{ start, testPath } ,
123
120
) ;
124
- if ( res . hasError ) return res . error ;
121
+ if ( res && res . hasError ) return res . error ;
125
122
126
123
return pass ( {
127
124
start,
128
125
end : new Date ( ) ,
129
126
test : {
130
- path : outFile ,
127
+ path : outfile ,
131
128
title : 'Docks' ,
132
129
} ,
133
130
} ) ;
You can’t perform that action at this time.
0 commit comments