Skip to content

Commit 5022916

Browse files
fix: react types version in devDependencies
1 parent 5be1cd2 commit 5022916

8 files changed

Lines changed: 18 additions & 22 deletions

File tree

.github/workflows/canary-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
node-version: ${{ matrix.node }}
2121
cache: 'pnpm'
2222

23-
- run: pnpm install
23+
- run: pnpm install --no-frozen-lockfile
2424

2525
- name: Create Canary Release Pull Request or Canary Publish
2626
id: changesets

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ jobs:
1010
- uses: pnpm/action-setup@v4
1111
# with:
1212
# version: 8
13-
- run: pnpm install
13+
- run: pnpm install --no-frozen-lockfile
1414
- run: pnpm build && pnpm test

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
"@testing-library/jest-dom": "^5.16.5",
5151
"@testing-library/react": "^14.0.0",
5252
"@types/node": "^18.15.13",
53-
"@types/react": "^18.0.38",
54-
"@types/react-dom": "^18.0.11",
53+
"@types/react": "^18.2.0",
54+
"@types/react-dom": "^18.2.0",
5555
"@types/testing-library__jest-dom": "^5.14.5",
5656
"@vitejs/plugin-react": "^4.3.1",
5757
"@vitest/coverage-istanbul": "^2.0.3",

pnpm-lock.yaml

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/use-debounced-fn/index.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { vi } from 'vitest'
2-
import { renderHook } from '@testing-library/react'
3-
import { act } from 'react'
2+
import { renderHook, act } from '@testing-library/react'
43
import useDebouncedFn from '.'
54

65
describe('useDebouncedFn', () => {

src/lib/use-local-storage/index.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { renderHook } from '@testing-library/react'
1+
import { renderHook, act } from '@testing-library/react'
22
import useLocalStorage from '.'
3-
import { act } from 'react'
43

54
describe('use-local-storage', () => {
65
afterEach(() => {

src/lib/use-throttled-fn/index.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { vi } from 'vitest'
2-
import { renderHook } from '@testing-library/react'
3-
import { act } from 'react'
2+
import { renderHook, act } from '@testing-library/react'
43
import useThrottledFn from '.'
54

65
describe('useThrottledFn', () => {

src/lib/use-window-resize/index.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import { renderHook } from '@testing-library/react'
1+
import { act, renderHook } from '@testing-library/react'
22
import { vi } from 'vitest'
33
import useWindowResize from '.'
4-
import { act } from 'react'
54

65
describe('use-window-resize', () => {
76
it('should run without errors', () => {

0 commit comments

Comments
 (0)