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

UIREQ-996: Update Jest/RTL tests #1107

Merged
merged 1 commit into from
Nov 17, 2023
Merged

UIREQ-996: Update Jest/RTL tests #1107

merged 1 commit into from
Nov 17, 2023

Conversation

Dmitriy-Litvinenko
Copy link
Contributor

@Dmitriy-Litvinenko Dmitriy-Litvinenko commented Sep 27, 2023

Purpose

Update Jest/RTL tests

Approach

  • Remove outdated/useless imports
  • Remove outdated/useless mockImplementation
  • Update import order

Refs

https://issues.folio.org/browse/UIREQ-996

@github-actions
Copy link

github-actions bot commented Sep 27, 2023

Jest Unit Test Statistics

    1 files  ±0    50 suites  ±0   1m 36s ⏱️ -1s
617 tests ±0  617 ✔️ ±0  0 💤 ±0  0 ±0 
618 runs  ±0  618 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 70974fc. ± Comparison against base commit 2c40d08.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Sep 27, 2023

BigTest Unit Test Statistics

0 tests  ±0   0 ✔️ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ±0 

Results for commit 70974fc. ± Comparison against base commit 2c40d08.

♻️ This comment has been updated with latest results.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Dmitriy-Litvinenko Dmitriy-Litvinenko requested a review from a team November 17, 2023 13:25
Copy link
Contributor

@Terala-Priyanka Terala-Priyanka left a comment

Choose a reason for hiding this comment

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

Hey @Dmitriy-Litvinenko
If you wish that, going forward such React imports do not happen in test files (or have lint complain such unwanted imports), you can adjust or modify lint rule https://github.com/folio-org/eslint-config-stripes/blob/0754e5740231869bb611146563ccce6c96ee4c0b/index.js#L79 in .eslintrc file in this repository.

example -

"overrides": [
    {
      "files": [ "src/**/tests/*", "test/**/*" ],
      "rules": {
        "no-unused-vars": ["warn", {
          "argsIgnorePattern": "^_"
        }]
      }
    }
  ],

@Dmitriy-Litvinenko Dmitriy-Litvinenko merged commit 2d67e36 into master Nov 17, 2023
5 checks passed
@Dmitriy-Litvinenko Dmitriy-Litvinenko deleted the UIREQ-996 branch November 17, 2023 16:43
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