I am testing an api with Jest and im trying to trigger an server error in the database, im trying to use nock to do it. the api uses Sequelize as its method of making database requests. is there a way with nock to make all the endpoints of a database server error?
i tried the following but it did not work:
nock(databaseAddress)
.get(/([\s\S]*)/)
.reply(500)
do any of you have any suggestions? Thanks