Skip to content

Commit 12330ed

Browse files
committed
test: fix jest-jsdom imports
1 parent 53c16ee commit 12330ed

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/index.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import React, { createRef } from 'react'
33
import { cleanup, fireEvent, render } from '@testing-library/react'
44
import { renderHook } from '@testing-library/react-hooks'
5-
import '@testing-library/jest-dom/extend-expect'
65
import { fromEvent } from 'file-selector'
76
import * as utils from './utils'
87
import Dropzone, { useDropzone } from './index'

testSetup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// https://www.npmjs.com/package/jest-dom
2-
require('jest-dom/extend-expect')
2+
require('@testing-library/jest-dom/extend-expect')
33

44
// TODO: Ignore warnings about act(), it refers to having async side effects updating the state;
55
// This happens because our async getFilesFromEvent() fn

0 commit comments

Comments
 (0)