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

Update jest.config.js #14

Open
wants to merge 1 commit into
base: mainnet-launch
Choose a base branch
from
Open

Conversation

BelfordZ
Copy link

@BelfordZ BelfordZ commented Mar 18, 2025

PR Type

configuration changes


Description

  • Reduced the test timeout in jest.config.js.

  • Removed an excessive timeout setting for tests.


Changes walkthrough 📝

Relevant files
Configuration changes
jest.config.js
Reduce test timeout setting in Jest configuration               

jest.config.js

  • Removed excessive test timeout setting.
  • Simplified the configuration by reducing timeout.
  • +0/-1     

    Need help?
  • Type /help how to ... in the comments thread for any questions about PR-Agent usage.
  • Check out the documentation for more information.
  • Copy link

    PR Reviewer Guide 🔍

    Here are some key observations to aid the review process:

    ⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
    🏅 Score: 95
    🧪 No relevant tests
    🔒 No security concerns identified
    ⚡ No major issues detected

    Comment on lines 1 to 6
    module.exports = {
    preset: 'ts-jest',
    testEnvironment: 'node',
    testTimeout: 5000000, // the more node involve in testing, the higher the timeout requires
    verbose: true,
    roots: ['<rootDir>/test/unit'],
    setupFiles: ['<rootDir>/test/unit/setup.ts'],

    Choose a reason for hiding this comment

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

    Suggestion: Consider re-adding the testTimeout configuration to prevent tests from running indefinitely, especially if they involve asynchronous operations or external services. [possible issue, importance: 8]

    New proposed code:
     module.exports = {
       preset: 'ts-jest',
       testEnvironment: 'node',
    +  testTimeout: 5000, // Adjusted timeout for better test performance
       verbose: true,
       roots: ['<rootDir>/test/unit'],
       setupFiles: ['<rootDir>/test/unit/setup.ts'],
       testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],

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

    Successfully merging this pull request may close these issues.

    1 participant