Skip to content

Commit f1b317f

Browse files
committed
Simplify @testing-library/jest-dom config
1 parent 0a0834b commit f1b317f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/react-calendar/vitest.setup.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
import { expect, afterEach } from 'vitest';
1+
import { afterEach } from 'vitest';
22
import { cleanup } from '@testing-library/react';
3-
import matchers from '@testing-library/jest-dom/matchers';
4-
5-
expect.extend(matchers);
3+
import '@testing-library/jest-dom/vitest';
64

75
afterEach(() => {
86
cleanup();

0 commit comments

Comments
 (0)