From 230e881de2ee09dc957a0e1140c45fd7633e7dcf Mon Sep 17 00:00:00 2001 From: szymonrybczak Date: Mon, 30 Oct 2023 16:51:29 +0100 Subject: [PATCH] fix: remove eslint warnings --- .eslintrc.js | 3 --- packages/cli-clean/src/__tests__/clean.test.ts | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 87a351c95..2189dbdf3 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -9,9 +9,6 @@ module.exports = { // @todo: remove once we cover whole codebase with types plugins: ['import'], settings: { - react: { - version: 'latest', - }, 'import/resolver': { // Use /tsconfig.json for typescript resolution typescript: {}, diff --git a/packages/cli-clean/src/__tests__/clean.test.ts b/packages/cli-clean/src/__tests__/clean.test.ts index 27515605b..a7833718c 100644 --- a/packages/cli-clean/src/__tests__/clean.test.ts +++ b/packages/cli-clean/src/__tests__/clean.test.ts @@ -13,8 +13,8 @@ describe('clean', () => { jest.resetAllMocks(); }); - it('throws if project root is not set', () => { - expect(clean([], mockConfig, mockConfig)).rejects.toThrow(); + it('throws if project root is not set', async () => { + await expect(clean([], mockConfig, mockConfig)).rejects.toThrow(); }); it('prompts if `--include` is omitted', async () => {