From 09423d87971b85788384f46de743d70000162c5d Mon Sep 17 00:00:00 2001 From: Shiv Bhonde Date: Sun, 7 May 2023 21:17:36 +0530 Subject: [PATCH 1/3] bump node version to 16 in gh-actions --- .github/workflows/backend-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.yml index 90a663f3..e7824980 100644 --- a/.github/workflows/backend-tests.yml +++ b/.github/workflows/backend-tests.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - node-version: [14.x] + node-version: [16.x] steps: - uses: actions/checkout@v2 From d1be3ae7f48c8cee3d06335e3e86b5d5547b6e46 Mon Sep 17 00:00:00 2001 From: Shiv Bhonde Date: Sun, 7 May 2023 21:20:04 +0530 Subject: [PATCH 2/3] change run task to yarn install instead of workspace install --- .github/workflows/backend-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.yml index e7824980..5c7907f6 100644 --- a/.github/workflows/backend-tests.yml +++ b/.github/workflows/backend-tests.yml @@ -26,5 +26,5 @@ jobs: with: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} - - run: yarn workspace backend install + - run: yarn install - run: yarn test:backend From f0fe31927781ec5f201477a81d60a8a10824e5d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20S=C3=A1nchez?= Date: Mon, 8 May 2023 18:35:18 +0200 Subject: [PATCH 3/3] Ignore tracking events on testing --- packages/backend/services/plausible.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/backend/services/plausible.js b/packages/backend/services/plausible.js index c49fa63b..826168f6 100644 --- a/packages/backend/services/plausible.js +++ b/packages/backend/services/plausible.js @@ -4,6 +4,8 @@ const axios = require("axios"); const PLAUSIBLE_EVENT_ENDPOINT = "https://plausible.io/api/event"; const trackPlausibleEvent = async (eventName, props, request) => { + if (typeof jest !== "undefined") return; + const payload = { domain: "speedrunethereum.com", name: eventName,