Skip to content

Commit 8082238

Browse files
committed
Respond from mock backend to prevent app breaking
1 parent bcae341 commit 8082238

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

e2e/fixtures/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ app.post('/volunteer', (req, res) => {
2222
body: req.body,
2323
headers: req.headers
2424
})
25-
res.sendStatus(204)
25+
res.json({ volunteer: req.body })
2626
})
2727

2828
app.get('/_calls', (req, res) => {

e2e/support/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,3 @@ import './commands'
1818

1919
// Alternatively you can use CommonJS syntax:
2020
// require('./commands')
21-
Cypress.on('uncaught:exception', (err, runnable) => {
22-
// returning false here prevents Cypress from
23-
// failing the test
24-
return false
25-
})

0 commit comments

Comments
 (0)