File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/datadog-instrumentations/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ function getPlaywrightConfig (playwrightRunner) {
149
149
}
150
150
151
151
function getRootDir ( playwrightRunner , configArg ) {
152
- const config = configArg ? configArg . config : getPlaywrightConfig ( playwrightRunner )
152
+ const config = configArg ? .config || getPlaywrightConfig ( playwrightRunner )
153
153
if ( config . rootDir ) {
154
154
return config . rootDir
155
155
}
@@ -163,7 +163,7 @@ function getRootDir (playwrightRunner, configArg) {
163
163
}
164
164
165
165
function getProjectsFromRunner ( runner , configArg ) {
166
- const config = configArg || getPlaywrightConfig ( runner )
166
+ const config = configArg ?. projects ? configArg : getPlaywrightConfig ( runner )
167
167
return config . projects ?. map ( ( project ) => {
168
168
if ( project . project ) {
169
169
return project . project
You can’t perform that action at this time.
0 commit comments