Skip to content

Commit

Permalink
Check for the absence of ".only()"
Browse files Browse the repository at this point in the history
  • Loading branch information
LoicPoullain committed Apr 18, 2022
1 parent c05c80e commit 72b0516
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ jobs:
- name: Create CLI symlink in the global folder
run: npm link
working-directory: packages/cli
- name: Check for the absence of "describe.only()" and "it.only()"
run: if grep -Rl ".only(" ./packages/*/src ; then echo "Unexpected describe.only() or it.only() found."; exit 1; else exit 0; fi
- name: Check package linting
run: npm run lint
- name: Run unit tests of @foal/acceptance-tests
Expand Down
2 changes: 1 addition & 1 deletion e2e_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ foal createapp my-app
cd my-app

# Check some compilation errors
if grep -Ril "../../Users/loicp" .; then
if grep -Rl "../../Users/loicp" .; then
echo "Compilation error: \"../../Users/loicp\" has been found in one of the builds."
exit 1
fi
Expand Down

0 comments on commit 72b0516

Please sign in to comment.