From 362924ad4e990a6f022c4aaea37a17b715d2e30f Mon Sep 17 00:00:00 2001 From: Martin Salles Date: Thu, 28 Dec 2023 18:56:56 +0100 Subject: [PATCH 1/2] Upgrade node to 20 --- .github/workflows/tests.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 67f4470..a1c659e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - node-version: [16.x] + node-version: [20.x] steps: - name: Use Node.js ${{ matrix.node-version }} diff --git a/package.json b/package.json index d191573..8659339 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ }, "private": true, "engines": { - "node": ">=0.16" + "node": ">=0.20" }, "jest": { "preset": "jest-expo", From 4d2d321df0d6292e1e7101f0cc1f8f08b96d7a40 Mon Sep 17 00:00:00 2001 From: Martin Salles Date: Thu, 28 Dec 2023 23:20:53 +0100 Subject: [PATCH 2/2] Remove unnecessary await --- src/screens/__tests__/HistoryScreen.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens/__tests__/HistoryScreen.test.js b/src/screens/__tests__/HistoryScreen.test.js index f3b6ee4..9b94bfc 100644 --- a/src/screens/__tests__/HistoryScreen.test.js +++ b/src/screens/__tests__/HistoryScreen.test.js @@ -5,7 +5,7 @@ import HistoryScreen from '../HistoryScreen'; describe('', () => { it('renders correctly', async () => { - const { toJSON } = await waitFor(() => render()); + const { toJSON } = render(); await waitFor(() => expect(toJSON()).toMatchSnapshot()); });