From 72b05166e3dd25ed52717267063f42eb97628f94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Poullain?= Date: Mon, 18 Apr 2022 20:07:32 +0200 Subject: [PATCH] Check for the absence of ".only()" --- .github/workflows/test.yml | 2 ++ e2e_test.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cdd56ebc1d..b8f109c387 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/e2e_test.sh b/e2e_test.sh index a6c307ab4f..8f93b519d1 100755 --- a/e2e_test.sh +++ b/e2e_test.sh @@ -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