UNPKG

@revoloo/cypress6

Version:

Cypress.io end to end testing tool

32 lines (26 loc) 914 B
const e2e = require('../support/helpers/e2e').default const Fixtures = require('../support/helpers/fixtures') describe('e2e task', () => { e2e.setup() it('handles undefined return and includes stack trace in error', function () { return e2e.exec(this, { spec: 'task_spec.js', snapshot: true, expectedExitCode: 2, }) .then(({ stdout }) => { // should include a stack trace from plugins file const match = stdout.match(/at errors(.*)\n/) expect(match).not.to.be.null expect(match[0]).to.include('plugins/index.js') }) }) it('merges task events on subsequent registrations and logs warning for conflicts', function () { return e2e.exec(this, { project: Fixtures.projectPath('multiple-task-registrations'), spec: 'multiple_task_registrations_spec.js', sanitizeScreenshotDimensions: true, snapshot: true, }) }) })