Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use native Fetch API in behaviour tests #3045

Merged
merged 2 commits into from
Nov 29, 2022
Merged

Use native Fetch API in behaviour tests #3045

merged 2 commits into from
Nov 29, 2022

Conversation

colinrotherham
Copy link
Contributor

We temporarily used undici to prepare for the Fetch API landing in Node.js 18:

Both PRs have now merged so we can remove undici

(Another package Dependabot doesn't need to worry about)

@colinrotherham colinrotherham added this to Needs review 🔍 in Design System Sprint Board via automation Nov 28, 2022
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-3045 November 28, 2022 19:53 Inactive
@@ -18,12 +17,6 @@ const expectedPages = [
'/examples/template-custom'
]

// Reduce test keep-alive
setGlobalDispatcher(new Agent({
keepAliveTimeout: 10,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@domoscargin domoscargin left a comment

Choose a reason for hiding this comment

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

Looks good to me! Love to see native stuff being used in favour of packages.

My only comment is definitely non-blocking.

"govuk_frontend_toolkit": "^9.0.1",
"govuk_template_jinja": "^0.26.0",
"govuk-elements-sass": "3.1.3",
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice little tidy up.

I would've expected govuk-elements-sass to stay where it was since hyphens come before underscores in ASCII/UTF (think it also just makes sense from a human-readable point of view - "e" comes before "f", and all that).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@domoscargin I'll put my hand up and say I manually ordered it wrong last time (sorry), but this time it was definitely npm fixing my mistake so I've trusted it here 😬

There's an ESLint plugin for keeping package.json files in order, maybe we need it 🙈

Thanks @domoscargin

@colinrotherham colinrotherham merged commit c5ac7e3 into main Nov 29, 2022
Design System Sprint Board automation moved this from Needs review 🔍 to Done 🏁 Nov 29, 2022
@colinrotherham colinrotherham deleted the fetch-native branch November 29, 2022 09:20
@colinrotherham colinrotherham added dependencies Pull requests that update a dependency file assurance labels Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assurance dependencies Pull requests that update a dependency file tech debt
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants