Skip to content

Commit

Permalink
refactor: replace got with node-fetch on hugo.test.ts
Browse files Browse the repository at this point in the history
related to netlify#5695
  • Loading branch information
hereje committed Dec 5, 2023
1 parent 33177fc commit 95f8e2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/frameworks/hugo.test.ts
Original file line number Diff line number Diff line change
@@ -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<FixtureTestContext>('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!')
})
Expand Down

0 comments on commit 95f8e2e

Please sign in to comment.