mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-05 14:30:32 -05:00
Make example scaffolding async (#1798)
* use async globbing to get example specs * add bluebird as dependency to packages/example
This commit is contained in:
committed by
Brian Mann
parent
b7756cff3f
commit
5faed29a97
@@ -1,9 +1,10 @@
|
||||
const path = require('path')
|
||||
const glob = require('glob')
|
||||
const Promise = require('bluebird')
|
||||
const glob = Promise.promisify(require('glob'))
|
||||
|
||||
module.exports = {
|
||||
getPathToExamples () {
|
||||
return glob.sync(
|
||||
return glob(
|
||||
path.join(
|
||||
__dirname,
|
||||
'..',
|
||||
|
||||
Reference in New Issue
Block a user