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

fix: Jest timer error in unit test #12230

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

NicolasMassart
Copy link
Contributor

Description

Fixes the following error message when runnning app/components/Views/QRTabSwitcher/QRTabSwitcher.test.tsx test:

ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From app/components/Views/QRTabSwitcher/QRTabSwitcher.test.tsx.

      at Timeout.now [as _onTimeout] (node_modules/react-native/jest/setup.js:28:41)

Related issues

Fixes: N/A

Manual testing steps

N/A

Screenshots/Recordings

N/A

Before

N/A

After

N/A

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Fixes:
ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From app/components/Views/QRTabSwitcher/QRTabSwitcher.test.tsx.

      at Timeout.now [as _onTimeout] (node_modules/react-native/jest/setup.js:28:41)
@NicolasMassart NicolasMassart self-assigned this Nov 7, 2024
@NicolasMassart NicolasMassart added team-mobile-platform needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) labels Nov 7, 2024
Copy link
Contributor

github-actions bot commented Nov 7, 2024

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@NicolasMassart NicolasMassart added the No QA Needed Apply this label when your PR does not need any QA effort. label Nov 7, 2024
@NicolasMassart NicolasMassart marked this pull request as ready for review November 7, 2024 17:24
@NicolasMassart NicolasMassart requested a review from a team as a code owner November 7, 2024 17:24
Copy link

sonarcloud bot commented Nov 27, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) No QA Needed Apply this label when your PR does not need any QA effort. team-mobile-platform
Projects
Status: Needs dev review
Development

Successfully merging this pull request may close these issues.

1 participant