feat: toast component #6136
Annotations
5 errors
Kit Test:
src/swap/components/SwapToast.tsx#L28
TypeError: setTransactionHash is not a function
❯ src/swap/components/SwapToast.tsx:28:5
❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:4164:14
❯ HTMLUnknownElement.callTheUserObjectsOperation node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30
❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25
❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3
❯ HTMLUnknownElementImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9
❯ HTMLUnknownElementImpl.dispatchEvent node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17
❯ HTMLUnknownElement.dispatchEvent node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34
❯ Object.invokeGuardedCallbackDev node_modules/react-dom/cjs/react-dom.development.js:4213:16
❯ invokeGuardedCallback node_modules/react-dom/cjs/react-dom.development.js:4277:31
This error originated in "src/swap/components/SwapToast.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "closes when the close button is clicked". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Kit Test:
src/swap/components/SwapToast.tsx#L28
TypeError: setTransactionHash is not a function
❯ src/swap/components/SwapToast.tsx:28:5
❯ src/internal/components/Toast.tsx:29:9
❯ src/swap/components/SwapToast.test.tsx:136:8
|
Kit Test:
src/swap/components/SwapToast.tsx#L27
TypeError: setIsToastVisible is not a function
❯ src/swap/components/SwapToast.tsx:27:5
❯ src/internal/components/Toast.tsx:29:9
❯ src/swap/components/SwapToast.test.tsx:152:8
|
Kit Test:
src/swap/components/SwapToast.tsx#L28
TypeError: setTransactionHash is not a function
❯ src/swap/components/SwapToast.tsx:28:5
❯ src/internal/components/Toast.tsx:29:9
❯ src/swap/components/SwapToast.test.tsx:168:8
|
Kit Test
Process completed with exit code 1.
|
Loading