mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-22 23:20:35 -06:00
49 lines
875 B
JavaScript
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')
|
|
}
|
|
}
|