From 2af8e5492ff4572d43a4dec46bb09526bafbba28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20D=C3=ADaz?= Date: Sat, 21 Nov 2020 20:02:01 -0600 Subject: [PATCH] Cli tests should be ran too. (#161) * Cli tests should be ran too. * Updating snapshot. --- .github/workflows/main.yml | 4 +++- bin/cli/__tests__/__snapshots__/request.spec.js.snap | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ea65f83..a5225c7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,9 @@ jobs: wget https://codeclimate.com/downloads/test-reporter/test-reporter-0.6.3-linux-amd64 -O cc-test-reporter chmod +x ./cc-test-reporter - - name: Run Tests + - name: Run CLI Tests + run: npm test -- ./bin + - name: Run Lib Tests run: npm run test:coverage - name: Report Results if: success() diff --git a/bin/cli/__tests__/__snapshots__/request.spec.js.snap b/bin/cli/__tests__/__snapshots__/request.spec.js.snap index f62a608..e72baa2 100644 --- a/bin/cli/__tests__/__snapshots__/request.spec.js.snap +++ b/bin/cli/__tests__/__snapshots__/request.spec.js.snap @@ -9,9 +9,7 @@ Array [ ", " ", - "{ - \\"hello\\": \\"world\\" -} + "{\\"hello\\": \\"world\\"} ", ] `;