mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-20 06:01:12 -06:00
Co-authored-by: Brian Mann <brian.mann86@gmail.com> Co-authored-by: Zach Bloomquist <git@chary.us> Co-authored-by: Zach Bloomquist <github@chary.us>
35 lines
741 B
JavaScript
35 lines
741 B
JavaScript
const systemTests = require('../lib/system-tests').default
|
|
|
|
describe('e2e caught and uncaught hooks errors', () => {
|
|
systemTests.setup({
|
|
servers: {
|
|
port: 7878,
|
|
static: true,
|
|
},
|
|
})
|
|
|
|
systemTests.it('failing1', {
|
|
spec: 'hook_caught_error_failing_spec.js',
|
|
snapshot: true,
|
|
expectedExitCode: 3,
|
|
})
|
|
|
|
systemTests.it('failing2', {
|
|
spec: 'hook_uncaught_error_failing_spec.js',
|
|
snapshot: true,
|
|
expectedExitCode: 1,
|
|
})
|
|
|
|
systemTests.it('failing3', {
|
|
spec: 'hook_uncaught_root_error_failing_spec.js',
|
|
snapshot: true,
|
|
expectedExitCode: 1,
|
|
})
|
|
|
|
systemTests.it('failing4', {
|
|
spec: 'hook_uncaught_error_events_failing_spec.js',
|
|
snapshot: true,
|
|
expectedExitCode: 1,
|
|
})
|
|
})
|