Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View nickcampbell18's full-sized avatar
🪀

Nick Campbell nickcampbell18

🪀
View GitHub Profile
@nickcampbell18
nickcampbell18 / Gemfile
Last active February 3, 2016 11:19
Desktopography image scraper (Ruby)
source 'https://rubygems.org'
gem 'nokogiri'
gem 'typhoeus'

Keybase proof

I hereby claim:

  • I am nickcampbell18 on github.
  • I am nickcampbell18 (https://keybase.io/nickcampbell18) on keybase.
  • I have a public key whose fingerprint is F8AD 031C 74D8 D9B1 8586 72A4 82FB 7136 BD57 98D9

To claim this, I am signing this object:

@nickcampbell18
nickcampbell18 / my-test.spec.js
Created October 9, 2023 14:45
Replacing the Undici global dispatch logic with a symbol-less Jest-compatible implementation
test("mocking a request", async () => {
const mockAgent = new MockAgent()
;(global as any).setMockedFetchGlobalDispatcher(mockAgent)
await fetch(...)
})