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

Chore/update to jest 29 in suite #8726

Merged
merged 3 commits into from
Jun 22, 2023
Merged

Chore/update to jest 29 in suite #8726

merged 3 commits into from
Jun 22, 2023

Conversation

mroz22
Copy link
Contributor

@mroz22 mroz22 commented Jun 19, 2023

  • 6e0c490 updates jest in packages/suite. I believe that other package should now be pretty easy to update and we can get rid of outdated jest 26 now
  • 253d268 - sets config to use some legacy behaviour without this, one assertion in polling middleware test fails. I don't really have time to spent on this on, so only acking @LukasRada
    a39b491 - this one is funny. Looks at this run all the tests are marked "PASSED" but unit tests in suite package still exit with non-zero code. Interestingly, it never happens on my machine (seems to be linux related). On my machine, I am seeing those error logs but tests exit with 0. I thought myself it might be a good idea to fix it actually and the fix I am proposing is not allowing multiple calls to db before it is really migrated but I'll post the fix in another PR. Here, as a workaround, I only initiate db in the start of the test.

part of #6025

@mroz22 mroz22 changed the title Chore/update jest in suite Chore/update to jest 29 in suite Jun 19, 2023
@trezor-ci trezor-ci force-pushed the chore/suite-absolute-imports branch from 0437324 to aafcc5a Compare June 19, 2023 12:59
Base automatically changed from chore/suite-absolute-imports to develop June 19, 2023 13:18
@mroz22 mroz22 force-pushed the chore/update-jest-in-suite branch from 8b1a77e to fa0f912 Compare June 19, 2023 14:01
@mroz22 mroz22 marked this pull request as ready for review June 19, 2023 14:04
@mroz22 mroz22 force-pushed the chore/update-jest-in-suite branch 2 times, most recently from 00fe842 to 39d22b6 Compare June 19, 2023 19:16
@@ -15,7 +15,7 @@
"translations:list-duplicates": "yarn tsx ../suite-data/src/translations/list-duplicates.ts",
"translations:list-unused": "yarn tsx ../suite-data/src/translations/list-unused.ts",
"type-check": "tsc --build tsconfig.json",
"test:unit": "jest",
"test:unit": "jest --version && jest",
Copy link
Contributor

Choose a reason for hiding this comment

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

why add --version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because I am interested in this information as long as there are multiple versions

Copy link
Contributor

Choose a reason for hiding this comment

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

why not update all of them in this PR? :D

Copy link
Contributor Author

Choose a reason for hiding this comment

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

please do it if you have time, will be appreciated

@mroz22 mroz22 force-pushed the chore/update-jest-in-suite branch 7 times, most recently from 6ac352e to a39b491 Compare June 21, 2023 15:34
@@ -214,9 +214,6 @@ const actionCallback = (
};

describe('useSendForm hook', () => {
beforeEach(() => {
jest.setTimeout(30000); // action sequences takes time
Copy link
Member

Choose a reason for hiding this comment

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

Maybe leaving this one to avoid flakiness. I had this test failing few times locally.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

forcepushed

@mroz22 mroz22 force-pushed the chore/update-jest-in-suite branch from a39b491 to 64ee0af Compare June 22, 2023 09:21
@mroz22 mroz22 merged commit 3e6f9d3 into develop Jun 22, 2023
5 checks passed
@mroz22 mroz22 deleted the chore/update-jest-in-suite branch June 22, 2023 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants