From 8adf7ab85bad0056b628866fc72c15fb0faeb368 Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Mon, 30 Oct 2023 21:35:45 +0100 Subject: [PATCH] Simplify @testing-library/jest-dom config --- packages/react-date-picker/vitest.setup.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/react-date-picker/vitest.setup.ts b/packages/react-date-picker/vitest.setup.ts index b2e7e916..d016f5a5 100644 --- a/packages/react-date-picker/vitest.setup.ts +++ b/packages/react-date-picker/vitest.setup.ts @@ -1,10 +1,8 @@ -import { expect, afterEach } from 'vitest'; +import { afterEach } from 'vitest'; import { cleanup } from '@testing-library/react'; -import matchers from '@testing-library/jest-dom/matchers'; +import '@testing-library/jest-dom/vitest'; import 'vitest-canvas-mock'; -expect.extend(matchers); - afterEach(() => { cleanup(); });