Files
cypress/packages/example/lib/example.js
Chris Breiding 5faed29a97 Make example scaffolding async (#1798)
* use async globbing to get example specs

* add bluebird as dependency to packages/example
2018-05-29 13:38:56 -04:00

24 lines
383 B
JavaScript

const path = require('path')
const Promise = require('bluebird')
const glob = Promise.promisify(require('glob'))
module.exports = {
getPathToExamples () {
return glob(
path.join(
__dirname,
'..',
'cypress',
'integration',
'examples',
'**',
'*'
)
)
},
getFolderName () {
return 'examples'
},
}