-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get UI unit tests working again w latest enzyme pkg
For whatever reason, the latest version of Enzyme requires an `Adapter` to be configured. We also run the linting before the unit tests since linting can actually catch errors in the code before they cause the unit tests to fail.
- Loading branch information
Showing
13 changed files
with
45 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
#!/bin/bash | ||
|
||
cd $(dirname $0) | ||
yarn --network-timeout 1000000 | ||
if [[ $? -ne 0 ]]; then | ||
echo "yarn failed!" >&2 | ||
exit 1 | ||
fi | ||
yarn test | ||
if [[ $? -ne 0 ]]; then | ||
echo "yarn unit tests failed!" >&2 | ||
cd $(dirname ${0}) | ||
yarn install --network-timeout 1000000 | ||
if [[ ${?} -ne 0 ]]; then | ||
echo "yarn install failed!" >&2 | ||
exit 1 | ||
fi | ||
yarn lint | ||
if [[ $? -ne 0 ]]; then | ||
if [[ ${?} -ne 0 ]]; then | ||
echo "yarn lint failed!" >&2 | ||
exit 1 | ||
fi | ||
yarn test | ||
if [[ ${?} -ne 0 ]]; then | ||
echo "yarn unit tests failed!" >&2 | ||
exit 1 | ||
fi | ||
exit 0 |