pmb0/express-sharp

View on GitHub
__mocks__/got.ts

Summary

Maintainability
A
0 mins
Test Coverage
export default class GotMock {
  static extend = jest.fn().mockReturnValue(new GotMock())

  defaults = {
    options: {},
  }

  get = jest.fn().mockReturnValue({ body: Buffer.from('test') })
}