mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-24 07:59:12 -05:00
28a912354b
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
31 lines
865 B
JavaScript
31 lines
865 B
JavaScript
const systemTests = require('../lib/system-tests').default
|
|
|
|
describe('e2e task', () => {
|
|
systemTests.setup()
|
|
|
|
it('handles undefined return and includes stack trace in error', function () {
|
|
return systemTests.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 systemTests.exec(this, {
|
|
project: 'multiple-task-registrations',
|
|
spec: 'multiple_task_registrations_spec.js',
|
|
sanitizeScreenshotDimensions: true,
|
|
snapshot: true,
|
|
})
|
|
})
|
|
})
|