-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into sparrowDom/balancer…
…-composable-st-pool
- Loading branch information
Showing
141 changed files
with
8,027 additions
and
4,736 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
|
||
RED='\033[0;31m' | ||
NC='\033[0m' | ||
GREEN='\033[0;32m' | ||
files="" | ||
# find all file ending with test.js that are not in node_modules | ||
for file in $(find . -type d -name node_modules -prune -o -name '*test.js' -print); do | ||
# uncomment below to debug which files match | ||
# echo "$file" | ||
# search if any contain it.only or describe.only | ||
match=$(grep -E "(describe|it)\.only[[:space:]]*\(" "$file") | ||
|
||
# add together the files containing .only | ||
if [[ -n "${match}" ]]; then | ||
files=${files}${file}'\n' | ||
fi | ||
done | ||
if [[ -n "${files}" ]]; then | ||
# fail pre-commit if | ||
echo "${RED}Git pre-commit hook failed! Remove \".only\" from the following test file(s):${GREEN}" | ||
echo ${files} | ||
echo "${NC}" | ||
exit 1 | ||
fi |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
dotenv: .env |
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
Oops, something went wrong.