Skip to content

test: mv plugins from tap#6088

Merged
Eomm merged 3 commits intofastify:mainfrom
jean-michelet:test/mvfromtap-plugins
May 15, 2025
Merged

test: mv plugins from tap#6088
Eomm merged 3 commits intofastify:mainfrom
jean-michelet:test/mvfromtap-plugins

Conversation

@jean-michelet
Copy link
Copy Markdown
Member

No description provided.

@jean-michelet jean-michelet requested a review from gurgunday April 28, 2025 06:36
@jean-michelet
Copy link
Copy Markdown
Member Author

Can we try to rerun the suite?

@Eomm Eomm added the test Issue or pr related to our testing infrastructure. label Apr 30, 2025
@jean-michelet
Copy link
Copy Markdown
Member Author

Hum. There is a flaky test.

Copy link
Copy Markdown
Member

@gurgunday gurgunday left a comment

Choose a reason for hiding this comment

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

lgtm

@jean-michelet jean-michelet requested a review from a team May 2, 2025 07:12
@Fdawgs Fdawgs requested a review from Copilot May 2, 2025 19:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR migrates the plugin tests from the tap framework to node:test while updating assertion and teardown patterns.

  • Migrates tests to use node:test with asynchronous callbacks (testDone).
  • Replaces tap assertions with the corresponding t.assert methods.
  • Updates teardown usage to t.after for improved cleanup.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
test/toolkit.js Adds a sequence helper function for chaining asynchronous steps.
test/plugin.4.test.js Converts tests from tap to node:test and updates assertions.
test/plugin.3.test.js Updates tests to use node:test, including asynchronous patterns.
test/plugin.2.test.js Refactors dependency and plugin naming tests with updated assertions and teardown.

@jean-michelet jean-michelet force-pushed the test/mvfromtap-plugins branch from 5fa92bc to 1ad1298 Compare May 14, 2025 20:30
@Eomm Eomm merged commit 7090d75 into fastify:main May 15, 2025
26 checks passed
@jean-michelet jean-michelet deleted the test/mvfromtap-plugins branch September 25, 2025 07:47
vaernion pushed a commit to Arbeidstilsynet/brevgen2 that referenced this pull request Dec 3, 2025
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
| [fastify](https://fastify.dev/) ([source](https://github.com/fastify/fastify)) | [`5.3.3` -> `5.4.0`](https://renovatebot.com/diffs/npm/fastify/5.3.3/5.4.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/fastify/5.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/fastify/5.3.3/5.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>fastify/fastify (fastify)</summary>

### [`v5.4.0`](https://github.com/fastify/fastify/releases/tag/v5.4.0)

[Compare Source](fastify/fastify@v5.3.3...v5.4.0)

#### What's Changed

- test: mv routes-\* from tap by [@&#8203;jean-michelet](https://github.com/jean-michelet) in fastify/fastify#6092
- test: mv skip-reply-send from tap by [@&#8203;jean-michelet](https://github.com/jean-michelet) in fastify/fastify#6094
- test: mv plugins from tap by [@&#8203;jean-michelet](https://github.com/jean-michelet) in fastify/fastify#6088
- fix(ci): ignore alternative runtime result by [@&#8203;Eomm](https://github.com/Eomm) in fastify/fastify#6125
- test: mv schema-\* from tap by [@&#8203;jean-michelet](https://github.com/jean-michelet) in fastify/fastify#6093
- test: mv hooks-async from tap by [@&#8203;jean-michelet](https://github.com/jean-michelet) in fastify/fastify#6084
- fix(types): add missing version to request.routeOptions by [@&#8203;inyourtime](https://github.com/inyourtime) in fastify/fastify#6126
- docs: remove fastify-sentry plugin by [@&#8203;dnlup](https://github.com/dnlup) in fastify/fastify#6131
- docs: add community plugins disclaimer by [@&#8203;jean-michelet](https://github.com/jean-michelet) in fastify/fastify#6132
- docs: use cross-platform compatible info emoji by [@&#8203;Fdawgs](https://github.com/Fdawgs) in fastify/fastify#6134
- perf: nits in reply.js by [@&#8203;Cangit](https://github.com/Cangit) in fastify/fastify#6136
- docs: join core team by [@&#8203;jean-michelet](https://github.com/jean-michelet) in fastify/fastify#6142
- docs: fix typo in hash.digest function by [@&#8203;piotr-cz](https://github.com/piotr-cz) in fastify/fastify#6145
- test: mv hooks from tap by [@&#8203;jean-michelet](https://github.com/jean-michelet) in fastify/fastify#6087
- test: improve issue 4959 unit test by [@&#8203;Uzlopak](https://github.com/Uzlopak) in fastify/fastify#6147
- chore: Bump markdownlint-cli2 from 0.17.2 to 0.18.1 by [@&#8203;dependabot](https://github.com/dependabot) in https://g...
@github-actions
Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

test Issue or pr related to our testing infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants