Skip to content

Commit 70c4c49

Browse files
adjust mocha .only check (#17071)
1 parent 2b17af0 commit 70c4c49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/BUILD.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ scripts:
200200
srcs:
201201
- components/**/*
202202
script: |
203-
if [ "$(git diff --cached | grep "+" | grep ".only")" != "" ]; then
203+
if [ "$(git diff --cached | grep "+" | grep "\w+\.only(")" != "" ]; then
204204
echo ""
205205
echo "COMMIT FAILED:"
206206
echo "Some spec files have .only. Please remove only and try committing again."

0 commit comments

Comments
 (0)