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

[wallet/desktop]: jest clear cache added to npm test scripts #1956

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

yilmazbahadir
Copy link
Contributor

@yilmazbahadir yilmazbahadir commented Dec 30, 2022

What was the issue?

Unit tests were failing due to unclean jest cache.

What is the fix?

jest cache is being cleared before npm unit test scripts.

"test": "TZ=UTC vue-cli-service test:unit",
"test:jenkins": "TZ=UTC vue-cli-service test:unit --coverage",
"test": "npm run jestClearCache && TZ=UTC vue-cli-service test:unit --testTimeout=30000",
"test:jenkins": "npm run jestClearCache && TZ=UTC vue-cli-service test:unit --coverage --testTimeout=30000",
Copy link
Member

Choose a reason for hiding this comment

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

is there any test taking longer than 10s?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

there was, complex UI page unit tests such as FormPersistentDelegationRequestTransaction could take more than 15s depending on the running machine.

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.

None yet

2 participants