Skip to content

Add tests for ResponseSize component #4676

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

Conversation

sreelakshmi-bruno
Copy link
Collaborator

@sreelakshmi-bruno sreelakshmi-bruno commented May 14, 2025

Description

  • Changes made
    • Invalid inputs (undefined, null, NaN, Infinity, strings, objects)
    • Valid size values (0B, <1024B, exactly 1024B, >1024B)
    • Decimal number handling
    • Tooltip content verification

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

"mini-css-extract-plugin": "^2.4.5",
"postcss": "8.4.47",
"style-loader": "^3.3.1",
"styled-components": "^6.1.18",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you please move styled-components from devDependencies to dependencies and revert it back to version 5.3.3, which is the version we're currently using?

projects: [
{
displayName: 'DOM',
testMatch: ['<rootDir>/src/components/**/*.(spec|test).[jt]s?(x)'],
Copy link
Collaborator

Choose a reason for hiding this comment

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

Change to /**/*.{spec,test}.[jt]s?(x) parentheses syntax is incorrect for globs

},
{
displayName: 'NODE',
testMatch: ['<rootDir>/src/**/*.(spec|test).[jt]s?(x)'],
Copy link
Collaborator

Choose a reason for hiding this comment

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

Change to /**/*.{spec,test}.[jt]s?(x) parentheses syntax is incorrect for globs

@sreelakshmi-bruno
Copy link
Collaborator Author

Closing the PR since there was a problem in the build with the branch. See new PR here.

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

Successfully merging this pull request may close these issues.

2 participants