From 69b7f64403f8d537554fc8c8c7167cec212c6d78 Mon Sep 17 00:00:00 2001 From: Jakub Majorek Date: Thu, 2 Dec 2021 15:56:54 +0100 Subject: [PATCH] Use node v14 for running tests on CI (#1646) * Use old default for unhandled rejections flag * Update type import * Use less strict flag, fix types * Use node v14 for running tests --- .github/workflows/test.yml | 4 +++- testUtils/intl.ts | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 58bb8b640..8dde5adef 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -47,7 +47,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - + - uses: actions/setup-node@v2 + with: + node-version: '14' - name: Cache node modules uses: actions/cache@v2 env: diff --git a/testUtils/intl.ts b/testUtils/intl.ts index 0c46e589d..85d0fb0f9 100644 --- a/testUtils/intl.ts +++ b/testUtils/intl.ts @@ -1,6 +1,6 @@ -import { OptionalIntlConfig } from "react-intl/src/components/provider"; +import { IntlConfig } from "react-intl"; -export const config: OptionalIntlConfig = { +export const config: Partial = { defaultLocale: "en", locale: "en" };