feat(Dialog): add dialogCard #5290
Annotations
10 errors
Run pnpm run test:
packages/components/dialog/dialogCard.tsx#L35
TypeError: props.onConfirm is not a function
❯ Object.confirmBtnAction packages/components/dialog/dialogCard.tsx:35:64
❯ onClick packages/components/dialog/hooks.tsx:49:16
❯ callWithErrorHandling node_modules/.pnpm/@VUE+runtime-core@3.3.9/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:156:18
❯ Object.callWithAsyncErrorHandling node_modules/.pnpm/@VUE+runtime-core@3.3.9/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:164:17
❯ HTMLButtonElement.invoker node_modules/.pnpm/@VUE+runtime-dom@3.3.9/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.js:598:17
❯ HTMLButtonElement.callTheUserObjectsOperation node_modules/.pnpm/jsdom@19.0.0/node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30
❯ innerInvokeEventListeners node_modules/.pnpm/jsdom@19.0.0/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:340:25
❯ invokeEventListeners node_modules/.pnpm/jsdom@19.0.0/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:276:3
❯ HTMLButtonElementImpl._dispatch node_modules/.pnpm/jsdom@19.0.0/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:223:9
❯ HTMLButtonElementImpl.dispatchEvent node_modules/.pnpm/jsdom@19.0.0/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17
This error originated in "packages/components/dialog/__tests__/index.test.jsx" 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 ":onConfirm". 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.
|
Run pnpm run test:
packages/components/dialog/dialogCard.tsx#L67
TypeError: props.onCloseBtnClick is not a function
❯ closeBtnAction packages/components/dialog/dialogCard.tsx:67:68
❯ callWithErrorHandling node_modules/.pnpm/@VUE+runtime-core@3.3.9/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:156:18
❯ Object.callWithAsyncErrorHandling node_modules/.pnpm/@VUE+runtime-core@3.3.9/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:164:17
❯ HTMLSpanElement.invoker node_modules/.pnpm/@VUE+runtime-dom@3.3.9/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.js:598:17
❯ HTMLSpanElement.callTheUserObjectsOperation node_modules/.pnpm/jsdom@19.0.0/node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30
❯ innerInvokeEventListeners node_modules/.pnpm/jsdom@19.0.0/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:340:25
❯ invokeEventListeners node_modules/.pnpm/jsdom@19.0.0/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:276:3
❯ HTMLSpanElementImpl._dispatch node_modules/.pnpm/jsdom@19.0.0/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:223:9
❯ HTMLSpanElementImpl.dispatchEvent node_modules/.pnpm/jsdom@19.0.0/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:94:17
❯ HTMLSpanElement.dispatchEvent node_modules/.pnpm/jsdom@19.0.0/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34
This error originated in "packages/components/dialog/__tests__/index.test.jsx" 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 ":onCloseBtnClick". 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.
|
Run pnpm run test:
packages/components/dialog/__tests__/index.test.jsx#L16
AssertionError: expected '' to be 'this is content' // Object.is equality
- Expected
+ Received
- this is content
❯ packages/components/dialog/__tests__/index.test.jsx:16:27
|
Run pnpm run test:
packages/components/dialog/__tests__/index.test.jsx#L25
AssertionError: expected '' to be 'this is content' // Object.is equality
- Expected
+ Received
- this is content
❯ packages/components/dialog/__tests__/index.test.jsx:25:27
|
Run pnpm run test:
packages/components/dialog/__tests__/index.test.jsx#L34
AssertionError: expected '' to be 'this is content' // Object.is equality
- Expected
+ Received
- this is content
❯ packages/components/dialog/__tests__/index.test.jsx:34:27
|
Run pnpm run test:
packages/components/dialog/__tests__/index.test.jsx#L42
AssertionError: expected false to be truthy
- Expected
+ Received
- true
+ false
❯ packages/components/dialog/__tests__/index.test.jsx:42:28
|
Run pnpm run test:
packages/components/dialog/__tests__/index.test.jsx#L81
AssertionError: expected '' to be 'this is header' // Object.is equality
- Expected
+ Received
- this is header
❯ packages/components/dialog/__tests__/index.test.jsx:81:29
|
Run pnpm run test:
packages/components/dialog/__tests__/index.test.jsx#L91
AssertionError: expected true to be falsy
- Expected
+ Received
- false
+ true
❯ packages/components/dialog/__tests__/index.test.jsx:91:31
|
Run pnpm run test:
packages/components/dialog/__tests__/index.test.jsx#L126
AssertionError: expected true to be falsy
- Expected
+ Received
- false
+ true
❯ packages/components/dialog/__tests__/index.test.jsx:126:56
|
Run pnpm run test:
node_modules/.pnpm/@vue+test-utils@2.4.6/node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js#L1574
Error: Cannot call trigger on an empty DOMWrapper.
❯ Object.trigger [as get] node_modules/.pnpm/@VUE+test-utils@2.4.6/node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:1574:27
❯ packages/components/dialog/__tests__/index.test.jsx:248:17
|
Loading