Skip to content

Commit 3d2ebe7

Browse files
committed
added test for precommit
1 parent 8915a85 commit 3d2ebe7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.husky/pre-commit

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@
33

44
# npm test
55
npx lint-staged
6+
7+
if [ "$(uname)" == "Darwin" ]; then
8+
npm run test
9+
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
10+
npm run test
11+
elif [ "$(expr substr $(uname -s) 1 5)" == "MINGW" ]; then
12+
npm run testWin
13+
fi

0 commit comments

Comments
 (0)