From 7e3349c87a2d32d0e7c6237a56b901c2d3e0a870 Mon Sep 17 00:00:00 2001 From: Angel Mendez Date: Thu, 7 Dec 2023 22:28:53 -0600 Subject: [PATCH] refactor: replace got with node-fetch on hugo.test.ts (#6247) * refactor: replace got with node-fetch on hugo.test.ts related to #5695 * refactor: replace got with node-fetch on hugo.test.ts related to #5695 --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- tests/integration/frameworks/hugo.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/frameworks/hugo.test.ts b/tests/integration/frameworks/hugo.test.ts index 9990ea3060b..61ec0d9dec7 100644 --- a/tests/integration/frameworks/hugo.test.ts +++ b/tests/integration/frameworks/hugo.test.ts @@ -1,11 +1,11 @@ import { expect, test } from 'vitest' import { FixtureTestContext, setupFixtureTests } from '../utils/fixture.js' -import got from '../utils/got.js' +import fetch from 'node-fetch' setupFixtureTests('hugo-site', { devServer: true }, () => { test('should not infinite redirect when -d flag is passed', async ({ devServer: { url } }) => { - const response = await got(`${url}/`).text() + const response = await fetch(`${url}/`).then((res) => res.text()) expect(response).toContain('Home page!') })