Skip to content

Commit

Permalink
refactor: replace got with node-fetch on hugo.test.ts (#6247)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
hereje and kodiakhq[bot] authored Dec 8, 2023
1 parent f9c07bc commit 7e3349c
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

1 comment on commit 7e3349c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,399
  • Package size: 405 MB
  • Number of ts-expect-error directives: 1,331

Please sign in to comment.