Skip to content

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.

@yilmazbahadir yilmazbahadir force-pushed the fix/unit-test-clear-cache branch from 36ce477 to 2ccecf3 Compare January 3, 2023 14:46
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