Skip to content

Commit

Permalink
test: import act from react
Browse files Browse the repository at this point in the history
  • Loading branch information
shervinchen committed May 2, 2024
1 parent 25dd589 commit a3105c5
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jest-setup.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import '@testing-library/jest-dom';
import { act } from '@testing-library/react';
import { act } from 'react';

beforeEach(() => {
jest.useFakeTimers();
4 changes: 2 additions & 2 deletions packages/Select/__tests__/Select.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from 'react';
import { act, render, screen } from '@testing-library/react';
import React, { useState, act } from 'react';
import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import Select from '..';
import { SelectProps, SelectValue } from '../Select.types';

0 comments on commit a3105c5

Please sign in to comment.