Skip to content

Commit

Permalink
fix: pass returnAbsolute flag to find specs in v9 (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov authored Oct 18, 2023
1 parent 93a0eb4 commit 960809a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function getConfig() {
throw new Error('Config file should be .ts, .js or .json file')
}

function findCypressSpecsV9(opts = {}) {
function findCypressSpecsV9(opts = {}, returnAbsolute = false) {
const defaults = {
integrationFolder: 'cypress/integration',
testFiles: '**/*.{js,ts}',
Expand All @@ -103,6 +103,7 @@ function findCypressSpecsV9(opts = {}) {
sort: true,
cwd: options.integrationFolder,
ignore: options.ignoreTestFiles,
absolute: returnAbsolute,
})
debug('found %d file(s) %o', files.length, files)

Expand Down Expand Up @@ -271,7 +272,7 @@ function findCypressSpecs(options, type = 'e2e', returnAbsolute = false) {
}

debug('reading Cypress config < v10')
const specs = findCypressSpecsV9(options)
const specs = findCypressSpecsV9(options, returnAbsolute)
return specs
} else if (type === 'component') {
debug('finding component specs')
Expand Down

0 comments on commit 960809a

Please sign in to comment.