Skip to content

Commit 8adf7ab

Browse files
committed
Simplify @testing-library/jest-dom config
1 parent 5166277 commit 8adf7ab

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
+2-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
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';
3+
import '@testing-library/jest-dom/vitest';
44
import 'vitest-canvas-mock';
55

6-
expect.extend(matchers);
7-
86
afterEach(() => {
97
cleanup();
108
});

0 commit comments

Comments
 (0)