Skip to content

Commit

Permalink
Simplify @testing-library/jest-dom config
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Oct 30, 2023
1 parent 5166277 commit 8adf7ab
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/react-date-picker/vitest.setup.ts
Original file line number Diff line number Diff line change
@@ -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();
});

0 comments on commit 8adf7ab

Please sign in to comment.