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 () => {