File tree Expand file tree Collapse file tree 4 files changed +6
-7
lines changed
Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 1010 runs-on : ubuntu-latest
1111 steps :
1212 - name : Checkout code
13- uses : actions/checkout@v4
13+ uses : actions/checkout@v6
1414
1515 - name : Install pnpm
1616 uses : pnpm/action-setup@v4
2121 - name : Install Node.js
2222 uses : actions/setup-node@v4
2323 with :
24- node-version : 20
24+ node-version-file : ' .nvmrc '
2525 cache : pnpm
2626
2727 - name : Install dependencies
Original file line number Diff line number Diff line change 1- pnpm lint-staged
1+ pnpm lint-staged && pnpm type-check
Original file line number Diff line number Diff line change 1- import { DeployButton } from '@/components/deploy-button'
21import { EnvVarWarning } from '@/components/env-var-warning'
32import { AuthButton } from '@/components/auth-button'
43import { ThemeSwitcher } from '@/components/theme-switcher'
Original file line number Diff line number Diff line change 1- import { ReactElement } from 'react'
1+ import { ReactNode } from 'react'
22import { render , RenderOptions } from '@testing-library/react'
33import { QueryClient , QueryClientProvider } from '@tanstack/react-query'
44
55const queryClient = new QueryClient ( {
66 defaultOptions : { queries : { retry : false } } ,
77} )
88
9- const Wrapper = ( { children } : { children : ReactElement } ) => (
9+ const Wrapper = ( { children } : { children : ReactNode } ) => (
1010 < QueryClientProvider client = { queryClient } > { children } </ QueryClientProvider >
1111)
1212
1313// All the providers you need for tests can go here : Theme, Redux, etc.
1414const customRender = (
15- ui : ReactElement ,
15+ ui : ReactNode ,
1616 options ?: Omit < RenderOptions , 'wrapper' > ,
1717) => render ( ui , { wrapper : Wrapper , ...options } )
1818
You can’t perform that action at this time.
0 commit comments