Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"type": "module",
"packageManager": "pnpm@7.19.0",
"devDependencies": {
"@babel/core": "7.20.5",
"@babel/core": "7.20.7",
"@babel/eslint-parser": "7.19.1",
"@babel/plugin-transform-runtime": "7.19.6",
"@babel/preset-env": "7.20.2",
Expand All @@ -17,38 +17,38 @@
"@commitlint/config-conventional": "17.3.0",
"@rollup/plugin-babel": "6.0.3",
"@rollup/plugin-node-resolve": "15.0.1",
"@scaleway/tsconfig": "workspace:*",
"@scaleway/eslint-config-react": "workspace:*",
"@scaleway/tsconfig": "workspace:*",
"@testing-library/jest-dom": "5.16.5",
"@testing-library/react": "13.4.0",
"@tsd/typescript": "4.9.3",
"@tsd/typescript": "4.9.4",
"@types/jest": "29.2.4",
"@types/node": "18.11.11",
"@types/node": "18.11.18",
"@types/prop-types": "15.7.5",
"@types/react": "18.0.26",
"@types/react-dom": "18.0.9",
"@types/react-dom": "18.0.10",
"builtin-modules": "3.3.0",
"cross-env": "7.0.3",
"eslint": "8.29.0",
"eslint": "8.30.0",
"husky": "8.0.2",
"jest": "29.3.1",
"jest-environment-jsdom": "29.3.1",
"jest-junit": "15.0.0",
"jest-localstorage-mock": "2.4.22",
"jest-localstorage-mock": "2.4.25",
"jest-runner-tsd": "4.0.0",
"lerna": "6.1.0",
"lerna": "6.3.0",
"lint-staged": "13.1.0",
"mockdate": "3.0.5",
"prettier": "2.8.0",
"prettier": "2.8.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"read-pkg": "7.1.0",
"rollup": "3.7.0",
"rollup-plugin-dts": "5.0.0",
"rollup": "3.8.1",
"rollup-plugin-dts": "5.1.0",
"rollup-plugin-preserve-shebangs": "0.2.0",
"rollup-plugin-visualizer": "5.8.3",
"tsd-lite": "0.6.0",
"typescript": "4.9.3",
"typescript": "4.9.4",
"wait-for-expect": "3.0.2"
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"eslint": ">= 8.5"
},
"devDependencies": {
"eslint": "8.29.0",
"typescript": "4.9.3"
"eslint": "8.30.0",
"typescript": "4.9.4"
}
}
2 changes: 1 addition & 1 deletion packages/jest-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"react": "^18.0.0 || 18"
},
"devDependencies": {
"@babel/core": "7.20.5",
"@babel/core": "7.20.7",
"react": "18.2.0",
"react-dom": "18.2.0"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ describe('usePaginatedDataLoader', () => {
expect(result.current.data).toStrictEqual({ 1: '1-1' })
expect(result.current.pageData).toBe('1-1')

await act(() => {
act(() => {
result.current.goToNextPage()
})
expect(result.current.page).toBe(2)
Expand All @@ -131,15 +131,15 @@ describe('usePaginatedDataLoader', () => {
expect(result.current.isLoading).toBe(false)
expect(result.current.data).toStrictEqual({ 1: '1-1', 2: '2-1' })
expect(result.current.pageData).toBe('2-1')
await act(() => {
act(() => {
result.current.goToPreviousPage()
result.current.goToPreviousPage()
result.current.goToPreviousPage()
result.current.goToPreviousPage()
})
expect(result.current.page).toBe(1)
expect(result.current.pageData).toBe('1-1')
await act(() => {
act(() => {
result.current.goToPage(2)
result.current.goToPage(-21)
result.current.goToPage(0)
Expand All @@ -161,7 +161,7 @@ describe('usePaginatedDataLoader', () => {
},
)
await waitFor(() => expect(result.current.data).toStrictEqual({ 1: '1-1' }))
await act(() => {
act(() => {
result.current.goToNextPage()
})
await waitFor(() =>
Expand Down
28 changes: 14 additions & 14 deletions packages/use-i18n/src/__tests__/usei18n.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ describe('i18n hook', () => {
expect(result.current.t('title')).toEqual(en.title)
})

await act(() => {
act(() => {
result.current.switchLocale('fr')
})

await waitFor(() => {
expect(result.current.t('title')).toEqual(fr.title)
})

await act(() => {
act(() => {
result.current.switchLocale('es')
})

Expand Down Expand Up @@ -159,7 +159,7 @@ describe('i18n hook', () => {
expect(result.current.t('lastName')).toEqual('Last Name')
expect(result.current.t('languages')).toEqual('Languages')

await act(() => {
act(() => {
result.current.switchLocale('fr')
})

Expand Down Expand Up @@ -204,7 +204,7 @@ describe('i18n hook', () => {

// current local will be 'en' based on navigator
// await load of locales
await act(() => {
act(() => {
result.current.switchLocale('fr')
})

Expand Down Expand Up @@ -277,7 +277,7 @@ describe('i18n hook', () => {
expect(result.current.currentLocale).toEqual('en')
expect(localStorage.getItem(LOCALE_ITEM_STORAGE)).toBe(null)

await act(() => {
act(() => {
result.current.switchLocale('fr')
})

Expand All @@ -286,7 +286,7 @@ describe('i18n hook', () => {
expect(localStorage.getItem(LOCALE_ITEM_STORAGE)).toBe('fr')
})

await act(() => {
act(() => {
result.current.switchLocale('es')
})

Expand All @@ -295,7 +295,7 @@ describe('i18n hook', () => {
expect(localStorage.getItem(LOCALE_ITEM_STORAGE)).toBe('es')
})

await act(() => {
act(() => {
result.current.switchLocale('test')
})
expect(result.current.currentLocale).toEqual('es')
Expand Down Expand Up @@ -369,7 +369,7 @@ describe('i18n hook', () => {
}),
).toEqual('$2.00')

await act(() => {
act(() => {
result.current.switchLocale('fr')
})

Expand Down Expand Up @@ -419,7 +419,7 @@ describe('i18n hook', () => {
}),
).toEqual('Motorcycle Bus Car')

await act(() => {
act(() => {
result.current.switchLocale('fr')
})

Expand Down Expand Up @@ -493,7 +493,7 @@ describe('i18n hook', () => {
}),
).toEqual('12/17/1995')

await act(() => {
act(() => {
result.current.switchLocale('fr')
})

Expand Down Expand Up @@ -530,7 +530,7 @@ describe('i18n hook', () => {

expect(result.current.relativeTime(date)).toEqual('over 20 years ago')

await act(() => {
act(() => {
result.current.switchLocale('fr')
})

Expand All @@ -549,7 +549,7 @@ describe('i18n hook', () => {
const date = new Date('September 13, 2011 15:15:00')

expect(result.current.relativeTimeStrict(date)).toEqual('3499 days ago')
await act(() => {
act(() => {
result.current.switchLocale('fr')
})

Expand All @@ -570,7 +570,7 @@ describe('i18n hook', () => {
expect(
result.current.formatUnit(12, { short: false, unit: 'byte' }),
).toEqual('12 bytes')
await act(() => {
act(() => {
result.current.switchLocale('fr')
})

Expand All @@ -591,7 +591,7 @@ describe('i18n hook', () => {
expect(
result.current.formatDate(new Date(2020, 1, 13, 16, 28), 'numericHour'),
).toEqual('2020-02-13 4:28 PM')
await act(() => {
act(() => {
result.current.switchLocale('fr')
})

Expand Down
2 changes: 1 addition & 1 deletion packages/use-query-params/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
"devDependencies": {
"react": "18.2.0",
"react-dom": "18.2.0",
"react-router-dom": "6.5.0"
"react-router-dom": "6.6.1"
}
}
Loading