Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.

Commit

Permalink
update dependencies and -- voila! -- most tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
dshenderson committed Jan 8, 2020
1 parent 59bcb56 commit 4244f32
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 24 deletions.
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,14 @@
"@babel/core": "^7.4.3",
"@babel/preset-env": "^7.4.3",
"@babel/preset-react": "^7.0.0",
"@emotion/core": "^10.0.27",
"@storybook/addon-options": "^5.2.8",
"@storybook/addons": "^5.2.8",
"@storybook/react": "^5.2.8",
"@testing-library/dom": "^6.11.0",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.4.0",
"@testing-library/react-hooks": "^3.2.1",
"axios": "^0.19.1",
"babel-eslint": "^10.0.1",
"babel-loader": "^8.0.5",
Expand All @@ -55,7 +60,7 @@
"lint-staged": "^9.5.0",
"prettier": "^1.16.4",
"react": "^16.8.6",
"react-hooks-testing-library": "^0.4.0",
"react-test-renderer": "^16.12.0",
"storybook-readme": "^5.0.8",
"testcafe": "^1.1.1",
"testcafe-browser-provider-browserstack": "^1.8.0"
Expand All @@ -78,9 +83,5 @@
"orientation",
"geolocation"
],
"dependencies": {
"@testing-library/dom": "^6.11.0",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.4.0"
}
"dependencies": {}
}
2 changes: 1 addition & 1 deletion test/unit/hooks/click-outside.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { forwardRef, createRef } from 'react'
import { cleanup, fireEvent, render } from 'react-testing-library'
import { cleanup, fireEvent, render } from '@testing-library/react'
import { act } from 'react-dom/test-utils'

import { useClickOutside } from '../../../src'
Expand Down
4 changes: 2 additions & 2 deletions test/unit/hooks/fullscreen.unit.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { createRef } from 'react'
import { act, cleanup, renderHook } from 'react-hooks-testing-library'
import { fireEvent, render } from 'react-testing-library'
import { act, cleanup, renderHook } from '@testing-library/react-hooks'
import { fireEvent, render } from '@testing-library/react'

import { useFullScreen, useFullScreenBrowser } from '../../../src'
import * as constants from '../../../src/constants'
Expand Down
2 changes: 1 addition & 1 deletion test/unit/hooks/geolocation.unit.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { act, renderHook, cleanup } from 'react-hooks-testing-library'
import { act, renderHook, cleanup } from '@testing-library/react-hooks'

import { useGeolocation } from '../../../src'

Expand Down
4 changes: 2 additions & 2 deletions test/unit/hooks/media-controls.unit.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useRef } from 'react'
import { act, cleanup } from 'react-hooks-testing-library'
import { fireEvent, render } from 'react-testing-library'
import { act, cleanup } from '@testing-library/react-hooks'
import { fireEvent, render } from '@testing-library/react'

import { useMediaControls } from '../../../src'

Expand Down
4 changes: 2 additions & 2 deletions test/unit/hooks/mouse-position.unit.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { act, cleanup, renderHook } from 'react-hooks-testing-library'
import { fireEvent } from 'react-testing-library'
import { act, cleanup, renderHook } from '@testing-library/react-hooks'
import { fireEvent } from '@testing-library/react'
import { useMousePosition } from '../../../src'

afterEach(cleanup)
Expand Down
4 changes: 2 additions & 2 deletions test/unit/hooks/online.unit.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { act, cleanup, renderHook } from 'react-hooks-testing-library'
import { fireEvent } from 'react-testing-library'
import { act, cleanup, renderHook } from '@testing-library/react-hooks'
import { fireEvent } from '@testing-library/react'

import { useOnline } from '../../../src'
import * as constants from '../../../src/constants'
Expand Down
4 changes: 2 additions & 2 deletions test/unit/hooks/orientation.unit.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { act, cleanup, renderHook } from 'react-hooks-testing-library'
import { fireEvent } from 'react-testing-library'
import { act, cleanup, renderHook } from '@testing-library/react-hooks'
import { fireEvent } from '@testing-library/react'

import { useOrientation } from '../../../src'

Expand Down
4 changes: 2 additions & 2 deletions test/unit/hooks/page-visibility.unit.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { act, cleanup, renderHook } from 'react-hooks-testing-library'
import { fireEvent } from 'react-testing-library'
import { act, cleanup, renderHook } from '@testing-library/react-hooks'
import { fireEvent } from '@testing-library/react'

import { usePageVisibility } from '../../../src'
import * as constants from '../../../src/constants'
Expand Down
4 changes: 2 additions & 2 deletions test/unit/hooks/resize.unit.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { act, cleanup, renderHook } from 'react-hooks-testing-library'
import { fireEvent } from 'react-testing-library'
import { act, cleanup, renderHook } from '@testing-library/react-hooks'
import { fireEvent } from '@testing-library/react'

import { useResize } from '../../../src'
import * as constants from '../../../src/constants'
Expand Down
4 changes: 2 additions & 2 deletions test/unit/hooks/scroll.unit.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { act, cleanup, renderHook } from 'react-hooks-testing-library'
import { fireEvent } from 'react-testing-library'
import { act, cleanup, renderHook } from '@testing-library/react-hooks'
import { fireEvent } from '@testing-library/react'

import { useScroll } from '../../../src'
import * as constants from '../../../src/constants'
Expand Down

0 comments on commit 4244f32

Please sign in to comment.