jest.disableAutomock() jest.unmock('got') const { getWebmentions } = require('./../../src/webmention/get') const domain = "brainbaking.com" describe("webmention receive scenario test", () => { // this tests against the real endpoint, meaning the token has to be correct. test("getWebmentions fetches anything at all", async () => { try { const result = await getWebmentions(domain, { token: process.env.WEBMENTION_TOKEN, endpoint: 'https://jam.brainbaking.com' }) //expect(result.length).toBeGreaterThan(-1) } catch { } }) })