tsedio / tsed

:triangular_ruler: Ts.ED is a Node.js and TypeScript framework on top of Express to write your application with TypeScript (or ES6). It provides a lot of decorators and guideline to make your code more readable and less error-prone. ⭐️ Star to support our work!
https://tsed.io/
MIT License
2.86k stars 284 forks source link

chore: fix coverage configuration #2895

Open Romakita opened 5 days ago

Romakita commented 5 days ago

Summary by CodeRabbit

coderabbitai[bot] commented 5 days ago

[!NOTE] Currently processing new changes in this PR. This may take a few minutes, please wait...

📥 Commits Reviewing files that changed from the base of the PR and between 182604fb87f9b5d7a8516d41826773a8b31ec67a and 666a12afecb1a6409466fb353ff76ab9230a3705.
📒 Files selected for processing (38) * `.github/workflows/build.yml` (1 hunks) * `packages/core/vitest.config.mts` (1 hunks) * `packages/di/vitest.config.mts` (1 hunks) * `packages/engines/vitest.config.mts` (1 hunks) * `packages/graphql/apollo/vitest.config.mts` (1 hunks) * `packages/graphql/typegraphql/vitest.config.mts` (1 hunks) * `packages/orm/adapters-redis/vitest.config.mts` (1 hunks) * `packages/orm/adapters/vitest.config.mts` (1 hunks) * `packages/orm/mikro-orm/vitest.config.mts` (1 hunks) * `packages/orm/mongoose/vitest.config.mts` (1 hunks) * `packages/orm/objection/vitest.config.mts` (1 hunks) * `packages/orm/prisma/vitest.config.mts` (1 hunks) * `packages/platform/platform-cache/vitest.config.mts` (1 hunks) * `packages/platform/platform-exceptions/vitest.config.mts` (1 hunks) * `packages/platform/platform-express/vitest.config.mts` (1 hunks) * `packages/platform/platform-http/vitest.config.mts` (1 hunks) * `packages/platform/platform-koa/vitest.config.mts` (1 hunks) * `packages/platform/platform-middlewares/vitest.config.mts` (1 hunks) * `packages/platform/platform-params/vitest.config.mts` (1 hunks) * `packages/platform/platform-router/vitest.config.mts` (1 hunks) * `packages/platform/platform-serverless/vitest.config.mts` (1 hunks) * `packages/platform/platform-views/vitest.config.mts` (1 hunks) * `packages/security/jwks/vitest.config.mts` (1 hunks) * `packages/security/oidc-provider-plugin-wildcard-redirect-uri/vitest.config.mts` (1 hunks) * `packages/security/oidc-provider/vitest.config.mts` (1 hunks) * `packages/security/passport/vitest.config.mts` (1 hunks) * `packages/third-parties/bullmq/vitest.config.mts` (1 hunks) * `packages/third-parties/components-scan/vitest.config.mts` (1 hunks) * `packages/third-parties/event-emitter/vitest.config.mts` (1 hunks) * `packages/third-parties/formio/vitest.config.mts` (1 hunks) * `packages/third-parties/pulse/vitest.config.mts` (1 hunks) * `packages/third-parties/schema-formio/vitest.config.mts` (1 hunks) * `packages/third-parties/socketio/vitest.config.mts` (1 hunks) * `packages/third-parties/sse/vitest.config.mts` (1 hunks) * `packages/third-parties/temporal/vitest.config.mts` (1 hunks) * `packages/third-parties/terminus/vitest.config.mts` (1 hunks) * `packages/third-parties/vike/vitest.config.mts` (1 hunks) * `tools/vitest/presets/index.js` (3 hunks)
 ____________________________________________________________________________________________________________________
< Always design for concurrency. Allow for concurrency, and you'll design cleaner interfaces with fewer assumptions. >
 --------------------------------------------------------------------------------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ

Walkthrough

The pull request includes modifications to the Vitest configuration files across various packages, primarily focusing on updating coverage thresholds for statements, branches, functions, and lines. Many configurations have seen an increase in required coverage metrics, while a few have decreased their thresholds. Additionally, there are changes in formatting and exclusions in the coverage settings. The configuration for the Vitest presets has also been refined, including the removal of unused imports and updates to the SWC plugin settings.

Changes

File Path Change Summary
packages/core/vitest.config.mts Updated coverage thresholds: statements 97.31, branches 95.69, functions 95.74, lines 97.31. Minor formatting change.
packages/di/vitest.config.mts Updated coverage thresholds: statements 98.91, branches 97.04, functions 97.15, lines 98.91. Minor formatting change.
packages/engines/vitest.config.mts Updated coverage thresholds: statements 80.69, branches 85.79, functions 78.4, lines 80.69.
packages/graphql/apollo/vitest.config.mts Updated coverage thresholds: statements 85, branches 85.29, functions 91.66, lines 85.
packages/graphql/typegraphql/vitest.config.mts Updated coverage thresholds: statements 94.8, branches 72.72, lines 94.8; functions unchanged at 100.
packages/orm/adapters-redis/vitest.config.mts Updated coverage thresholds: statements 99.62, branches 95.65, functions 100, lines 99.62.
packages/orm/adapters/vitest.config.mts Updated coverage thresholds: statements 99.17, branches 98.5, functions 96.66, lines 99.17.
packages/orm/mikro-orm/vitest.config.mts Updated coverage thresholds: statements 97.75, branches 97.46, functions 100, lines 97.75. Minor formatting change.
packages/orm/mongoose/vitest.config.mts Updated coverage thresholds: statements 97.98, branches 96.18, functions 100, lines 97.98. Minor formatting change.
packages/orm/objection/vitest.config.mts Updated coverage thresholds: statements 94.33, branches 98.66, functions 92.3, lines 94.33.
packages/orm/prisma/vitest.config.mts Updated coverage thresholds: statements 91.11, branches 92.15, functions 92.59, lines 91.11.
packages/platform/platform-cache/vitest.config.mts Updated branches threshold from 98.92 to 98.26; other thresholds unchanged.
packages/platform/platform-exceptions/vitest.config.mts Updated branches threshold from 96.66 to 97.29; other thresholds unchanged.
packages/platform/platform-express/vitest.config.mts Decreased thresholds: statements 96.61, branches 95, lines 96.61; functions unchanged at 100.
packages/platform/platform-http/vitest.config.mts Updated thresholds: statements 97.21, branches 95.14, functions 95.31, lines 97.21.
packages/platform/platform-koa/vitest.config.mts Decreased thresholds: statements 99.15, branches 95.6, lines 99.15; functions unchanged at 100.
packages/platform/platform-middlewares/vitest.config.mts Updated thresholds: statements 77.59, branches 95.83, functions 81.81, lines 77.59.
packages/platform/platform-params/vitest.config.mts Decreased thresholds: statements 99.2, branches 90.55, lines 99.2; functions unchanged at 100.
packages/platform/platform-router/vitest.config.mts Updated branches threshold from 97.47 to 94.96; other thresholds unchanged.
packages/platform/platform-serverless/vitest.config.mts Decreased thresholds: statements 98.53, branches 96.36, lines 98.53; functions unchanged at 100.
packages/platform/platform-views/vitest.config.mts Updated thresholds: statements 92.25, branches 94.73, functions 76.92, lines 92.25.
packages/security/jwks/vitest.config.mts Updated all thresholds to 0 from 100; added newline at end of file.
packages/security/oidc-provider-plugin-wildcard-redirect-uri/vitest.config.mts Updated all thresholds to 0 from 100 and 90; added newline at end of file.
packages/security/oidc-provider/vitest.config.mts Updated all thresholds to 0 from previous values. Added newline at end of file.
packages/security/passport/vitest.config.mts Updated all thresholds to 0 from previous values.
packages/third-parties/bullmq/vitest.config.mts Updated coverage thresholds: statements 98.92, branches 98.55, functions 100, lines 98.92.
packages/third-parties/components-scan/vitest.config.mts Updated branches threshold from 94.44 to 95.65; added exclusion for "**/isTsEnv.ts".
packages/third-parties/event-emitter/vitest.config.mts Updated thresholds: statements 81.72, branches 100, functions 90, lines 81.72.
packages/third-parties/formio/vitest.config.mts Updated thresholds: statements 95.77, branches 96.66, functions 96.85, lines 95.77.
packages/third-parties/pulse/vitest.config.mts Updated branches threshold from 96.87 to 100; other thresholds unchanged.
packages/third-parties/schema-formio/vitest.config.mts Updated thresholds: statements 99.62, branches 98.71, lines 99.62; functions unchanged at 100.
packages/third-parties/socketio/vitest.config.mts Updated thresholds: statements 99.59, branches 98.87, lines 99.59; functions unchanged at 100.
packages/third-parties/sse/vitest.config.mts Decreased thresholds: statements 52.28, lines 52.28; branches and functions unchanged.
packages/third-parties/temporal/vitest.config.mts Decreased thresholds: statements 91.86, branches 78.26, lines 91.86; functions unchanged at 88.88.
packages/third-parties/terminus/vitest.config.mts Updated all thresholds to 100.
packages/third-parties/vike/vitest.config.mts Updated all thresholds to 100.
tools/vitest/presets/index.js Removed resolveWorkspaceFiles import, updated coverage exclusions, modified SWC plugin settings.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)
🪧 Tips ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit , please review it.` - `Generate unit testing code for this file.` - `Open a follow-up GitHub issue for this discussion.` - Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples: - `@coderabbitai generate unit testing code for this file.` - `@coderabbitai modularize this function.` - PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples: - `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.` - `@coderabbitai read src/utils.ts and generate unit testing code.` - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.` - `@coderabbitai help me debug CodeRabbit configuration file.` Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. ### CodeRabbit Commands (Invoked using PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai full review` to do a full review from scratch and review all the files again. - `@coderabbitai summary` to regenerate the summary of the PR. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository. - `@coderabbitai help` to get help. ### Other keywords and placeholders - Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. - Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description. - Add `@coderabbitai` anywhere in the PR title to generate the title automatically. ### CodeRabbit Configuration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information. - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json` ### Documentation and Community - Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit. - Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.