Files
cypress/packages/example/lib/example.js
Dmitriy Kovalenko 21ee591d1e feat: create-cypress-tests wizard (#8857)
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
2020-11-30 13:20:43 -05:00

49 lines
875 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'
},
getPathToPlugins() {
return path.resolve(__dirname, '..', 'cypress', 'plugins', 'index.js')
},
getPathToSupportFiles() {
return glob(
path.join(
__dirname,
'..',
'cypress',
'support',
'**',
'*'
)
)
},
getPathToTsConfig() {
return path.resolve(__dirname, '..', 'cypress', 'tsconfig.json')
},
getPathToFixture() {
return path.resolve(__dirname, '..', 'cypress', 'fixtures', 'example.json')
}
}