Skip to content

Commit

Permalink
use latest user-event
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Sep 14, 2023
1 parent d72034b commit 01ddf9c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/utils/misc.use-double-check.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@
* @vitest-environment jsdom
*/
import { render, screen } from '@testing-library/react'
import userEventDefault from '@testing-library/user-event'
import { userEvent } from '@testing-library/user-event'
import { useState } from 'react'
import { expect, test } from 'vitest'
import { useDoubleCheck } from './misc.tsx'

// https://github.com/testing-library/user-event/issues/1146
const userEvent = userEventDefault.default ?? userEventDefault

function TestComponent() {
const [defaultPrevented, setDefaultPrevented] = useState<
'idle' | 'no' | 'yes'
Expand Down

0 comments on commit 01ddf9c

Please sign in to comment.