Files
cypress/system-tests/projects/module-api/async.js
2022-02-28 13:53:54 -05:00

16 lines
376 B
JavaScript

const cypress = require('cypress')
console.log('cypress is', cypress)
async function testSpec (spec) {
console.assert(spec, 'missing spec filename')
console.log('running test %s', spec)
const result = await cypress.run({ spec })
console.log(result)
}
(async () => {
await testSpec('./cypress/e2e/a-spec.cy.js')
await testSpec('./cypress/e2e/b-spec.cy.js')
})()