bikk-uk / jest-mock-express

A lightweight Jest mock for unit testing Express
MIT License
49 stars 7 forks source link

TypeError: res.set is not a function #74

Closed atlanteh closed 2 years ago

atlanteh commented 2 years ago

Running the following code fails when using getMockRes: res.set('referrer-policy', 'no-referrer');

Also the res.header('referrer-policy', 'no-referrer') alias fails

atlanteh commented 2 years ago

Missed the getMockRes().res part. Sorry.