Files
cypress/system-tests/projects/module-api/index.js
Zach Bloomquist ffd3627e43 test: migrate module_api to system tests (#20265)
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2022-02-25 23:12:05 +00:00

21 lines
581 B
JavaScript

const banner = require('terminal-banner').terminalBanner
const allPaths = require('@bahmutov/all-paths')
const cypress = require('cypress')
console.log('cypress is', cypress)
const onSuccess = (runResult) => {
banner('Cypresss results')
console.log('%o', runResult)
banner('Results paths')
// TODO find a better way to show all available properties in the runResult object
// maybe a tree representation in the terminal?
console.log(allPaths(runResult).join('\n'))
}
cypress.run({
spec: './cypress/integration/a-spec.js',
})
.then(onSuccess)
.catch(console.error)