Skip to content

test: increase coverage to 100% and improvements#159

Open
Tony133 wants to merge 3 commits into
mainfrom
test/improve-coverage
Open

test: increase coverage to 100% and improvements#159
Tony133 wants to merge 3 commits into
mainfrom
test/improve-coverage

Conversation

@Tony133

@Tony133 Tony133 commented Jul 17, 2026

Copy link
Copy Markdown
Member

Proposal:

  • increase coverage to 100%, shoulde resolve this issue Coverage 100% #29
  • rename folder tests in test, so as to align the folders with the other fastify plugins
  • update eslint.config.js and tsconfig.json for the build
screenshot-coverage

@Tony133

Tony133 commented Jul 17, 2026

Copy link
Copy Markdown
Member Author

@Tony133
Tony133 marked this pull request as ready for review July 17, 2026 08:53
@Tony133
Tony133 requested a review from a team July 17, 2026 08:53
@jean-michelet

Copy link
Copy Markdown
Member

Who discretely rewrote this package in typescript while nobody was watching?

Comment thread tests/index.test.ts Outdated
Comment thread src/index.ts
Comment thread tsconfig.json
"removeComments": true,
"noUnusedLocals": true
"noUnusedLocals": true,
"skipLibCheck": true

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

see screenshot:

screenshot

@Tony133
Tony133 requested a review from a team July 17, 2026 10:02
@Tony133 Tony133 changed the title test: increase coverage to 100% test: increase coverage to 100% and improvements Jul 17, 2026
@Tony133
Tony133 force-pushed the test/improve-coverage branch from 0faaf9b to cbb57c8 Compare July 17, 2026 15:23

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would recommend we switch to strip types and esm

@Tony133

Tony133 commented Jul 17, 2026

Copy link
Copy Markdown
Member Author

I would recommend we switch to strip types and esm

Agreed on the direction, but I'll split it into a separate PR since it's a breaking change (major bump, ESM-only, touches index.ts and the test setup). This one's just the files fix and test coverage; will follow up with the ESM/strip-types conversion separately, ok ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants