Feat: Implement buyer wishlist #394
Annotations
9 errors and 1 warning
Unhandled error:
src/components/home/ProductCard.tsx#L12
TypeError: Cannot destructure property 'token' of 'useAppSelector(...)' as it is undefined.
❯ ProductCard src/components/home/ProductCard.tsx:12:11
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
❯ performSyncWorkOnRoot node_modules/react-dom/cjs/react-dom.development.js:26135:20
This error originated in "src/__test__/shop.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 "fetches and displays products". 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.
|
Unhandled error:
src/components/home/ProductCard.tsx#L12
TypeError: Cannot destructure property 'token' of 'useAppSelector(...)' as it is undefined.
❯ ProductCard src/components/home/ProductCard.tsx:12:11
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
❯ performSyncWorkOnRoot node_modules/react-dom/cjs/react-dom.development.js:26135:20
This error originated in "src/__test__/shop.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 "filters products based on user input". 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.
|
src/__test__/shop.test.tsx > Shop Component > fetches and displays products:
src/__test__/shop.test.tsx#L79
TestingLibraryElementError: Unable to find an element with the text: /Product 1/i. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
<div />
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>
❯ Proxy.waitForWrapper node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ src/__test__/shop.test.tsx:79:11
|
src/__test__/shop.test.tsx > Shop Component > filters products based on user input:
src/__test__/shop.test.tsx#L104
TestingLibraryElementError: Unable to find an element with the text: /Product 1/i. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
<div />
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>
❯ Proxy.waitForWrapper node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ src/__test__/shop.test.tsx:104:11
|
src/__test__/home/ProductGridFour.test.tsx > ProductGridFour Component > renders ProductGridFour with up to 4 products:
src/components/home/ProductCard.tsx#L11
Error: could not find react-redux context value; please ensure the component is wrapped in a <Provider>
❯ useReduxContext node_modules/react-redux/src/hooks/useReduxContext.ts:17:13
❯ useStore node_modules/react-redux/src/hooks/useStore.ts:97:23
❯ Module.useDispatch2 node_modules/react-redux/src/hooks/useDispatch.ts:72:19
❯ ProductCard src/components/home/ProductCard.tsx:11:20
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
|
src/__test__/home/ProductGridFour.test.tsx > ProductGridFour Component > renders the correct product details:
src/components/home/ProductCard.tsx#L11
Error: could not find react-redux context value; please ensure the component is wrapped in a <Provider>
❯ useReduxContext node_modules/react-redux/src/hooks/useReduxContext.ts:17:13
❯ useStore node_modules/react-redux/src/hooks/useStore.ts:97:23
❯ Module.useDispatch2 node_modules/react-redux/src/hooks/useDispatch.ts:72:19
❯ ProductCard src/components/home/ProductCard.tsx:11:20
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
|
src/__test__/home/productCard.test.tsx > ProductCard Component > renders the ProductCard component with product details:
src/components/home/ProductCard.tsx#L11
Error: could not find react-redux context value; please ensure the component is wrapped in a <Provider>
❯ useReduxContext node_modules/react-redux/src/hooks/useReduxContext.ts:17:13
❯ useStore node_modules/react-redux/src/hooks/useStore.ts:97:23
❯ Module.useDispatch2 node_modules/react-redux/src/hooks/useDispatch.ts:72:19
❯ ProductCard src/components/home/ProductCard.tsx:11:20
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
|
src/__test__/home/productList.test.tsx > ProductsList Component > renders the ProductsList component with products:
src/components/home/ProductCard.tsx#L12
TypeError: Cannot destructure property 'token' of 'useAppSelector(...)' as it is undefined.
❯ ProductCard src/components/home/ProductCard.tsx:12:11
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
❯ performConcurrentWorkOnRoot node_modules/react-dom/cjs/react-dom.development.js:25789:22
|
build (20.x)
Process completed with exit code 1.
|
build (20.x)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|