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

test: improvement management of asynchronous configuration #2817

Merged
merged 11 commits into from
Sep 7, 2023

Conversation

csouchet
Copy link
Member

@csouchet csouchet commented Aug 24, 2023

With the POC PR #2812, I identified instances where asynchronous handling was missing in the tests.

The enabled rules are:

  • @typescript-eslint/require-await
  • @typescript-eslint/no-misused-promises
  • @typescript-eslint/no-floating-promises
  • @typescript-eslint/require-await

The disabled rules are:

  • require-await

Covers #2742

@csouchet csouchet added the chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...) label Aug 24, 2023
@csouchet csouchet marked this pull request as ready for review August 24, 2023 16:02
@csouchet csouchet requested a review from tbouffard August 24, 2023 16:02
@csouchet csouchet force-pushed the fix_missing_async_handling_on_tests branch from b1f5ade to 69812df Compare August 24, 2023 16:15
Copy link
Member

@tbouffard tbouffard left a comment

Choose a reason for hiding this comment

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

I have a single remark about test/config/jest.image.ts, otherwise this looks OK

test/config/jest.image.ts Show resolved Hide resolved
@csouchet csouchet force-pushed the fix_missing_async_handling_on_tests branch from 76548f7 to 2118d74 Compare August 31, 2023 14:58
@github-actions
Copy link

github-actions bot commented Sep 7, 2023

♻️ PR Preview 52f7de1 has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

@github-actions
Copy link

github-actions bot commented Sep 7, 2023

♻️ PR Preview 52f7de1 has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

@tbouffard tbouffard changed the title test(asynchronous): fix the lack of asynchronous handling in tests. test: improvement management of asynchronous configuration Sep 7, 2023
@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 7, 2023

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

@tbouffard tbouffard merged commit bffd25b into master Sep 7, 2023
@tbouffard tbouffard deleted the fix_missing_async_handling_on_tests branch September 7, 2023 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants