mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-25 00:19:22 -06:00
Adding specDir handling from develop
This commit is contained in:
@@ -793,11 +793,10 @@ const systemTests = {
|
||||
return spec
|
||||
}
|
||||
|
||||
if (options.testingType === 'component') {
|
||||
return path.join(projectPath, spec)
|
||||
}
|
||||
const specDir = options.specDir
|
||||
|| (options.testingType === 'component' ? '' : 'cypress/e2e')
|
||||
|
||||
return path.join(projectPath, 'cypress', 'e2e', spec)
|
||||
return path.join(projectPath, specDir, spec)
|
||||
})
|
||||
|
||||
// normalize the path to the spec
|
||||
|
||||
Reference in New Issue
Block a user