9faf55ed | 05-Jan-2021 |
Derick Montague <derick.montague@ibm.com> |
Run test script as part of the pre-commit hook
Now that we have added more unit testing, it will be beneficial to run the unit test script prior to check in. Eventually, we will want this to be part
Run test script as part of the pre-commit hook
Now that we have added more unit testing, it will be beneficial to run the unit test script prior to check in. Eventually, we will want this to be part of the CI build process since Git pre-hooks can be avoided.
Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I59aad81a470176d2f6a5afeb130661c642f4d259
show more ...
|
812803aa | 05-Jan-2021 |
Derick Montague <derick.montague@ibm.com> |
Update PageContainer snapshot test
The UI is rendering differently than the snapshot saved. I reviewed the difference and it is simply a difference with how the formatting of the class and id values
Update PageContainer snapshot test
The UI is rendering differently than the snapshot saved. I reviewed the difference and it is simply a difference with how the formatting of the class and id values. I did not see this issue when testing the PageContainer snapshot test. It is not clear why there is a difference, but if it were to fail again for a different user, we can remove the snapshot since the main test we want to pass is that the HTML element being rendered is the <main> element.
To update the snapshot for an individual spec file, use the following command in the cli:
npm run test:update -- -u tests/unit/Global/PageContainer.spec.js
Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: Ieac495f893ba2025d2d6f4d3b7b49506bdf0ecae
show more ...
|