Skip to content

Commit 083d0ae

Browse files
committed
cypress 15
1 parent f4c041b commit 083d0ae

File tree

3 files changed

+57
-34
lines changed

3 files changed

+57
-34
lines changed

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
},
5050
"devDependencies": {
5151
"@tailwindcss/vite": "^4.1.17",
52-
"@testing-library/cypress": "^10.0.3",
52+
"@testing-library/cypress": "^10.1.0",
5353
"@testing-library/jest-dom": "^6.4.2",
5454
"@testing-library/react": "^15.0.4",
5555
"@testing-library/user-event": "^14.5.2",
@@ -61,7 +61,7 @@
6161
"@vitejs/plugin-react-swc": "^3.8.0",
6262
"@vitest/coverage-v8": "^4.0.18",
6363
"axios-mock-adapter": "^1.20.0",
64-
"cypress": "^14.0.0",
64+
"cypress": "^15.11.0",
6565
"eslint-plugin-cypress": "^3.3.0",
6666
"eslint-plugin-jest-dom": "^5.4.0",
6767
"eslint-plugin-testing-library": "^6.2.2",

src/components/toast/ToastProvider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function ToastProvider({ children, lifetime = 2000 }: ToastProvid
1515
const [text, setText] = useState('')
1616
const [type, setType] = useState<ToastType>(ToastType.NONE)
1717
const [show, setShow] = useState(false)
18-
const [timeoutId, setTimeoutId] = useState<NodeJS.Timeout>()
18+
const [timeoutId, setTimeoutId] = useState<ReturnType<typeof setTimeout>>()
1919

2020
useEffect(() => {
2121
return () => {
@@ -77,7 +77,7 @@ export default function ToastProvider({ children, lifetime = 2000 }: ToastProvid
7777
{show && (
7878
<motion.div
7979
className={clsx(
80-
'fixed bottom-0 z-[51] flex w-full items-center space-x-2 bg-indigo-500 p-4 text-white shadow-md md:bottom-8 md:left-8 md:w-auto md:min-w-80 md:rounded md:pr-8',
80+
'fixed bottom-0 z-51 flex w-full items-center space-x-2 bg-indigo-500 p-4 text-white shadow-md md:bottom-8 md:left-8 md:w-auto md:min-w-80 md:rounded md:pr-8',
8181
{ 'bg-red-500': type === ToastType.ERROR },
8282
)}
8383
initial={{ opacity: 0, scale: 0.95, y: 40 }}

0 commit comments

Comments
 (0)