@revoloo/cypress6
Version:
Cypress.io end to end testing tool
19 lines (16 loc) • 515 B
JavaScript
const { runTest } = require('./helpers')
const path = require('path')
const glob = require('fast-glob')
describe('can test', async () => {
// runs every test in cypress/tests/e2e as its own test
// the comment above the test will determine the assertion on the results
glob.sync(path.join(__dirname, '../../cypress/tests/e2e/**/*'))
.map((v) => {
const filename = path.relative(process.cwd(), v)
it(`test: ${filename}`, async () => {
await runTest({
spec: v,
})
})
})
})