fixed the last line #106
Annotations
3 errors and 2 warnings
src/App.test.tsx > App > should render:
src/App.test.tsx#L8
TestingLibraryElementError: Unable to find an element with the text: Basket. 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>
<div
class="app-content"
>
<header>
<div
class="header"
>
<h1>
Checkout
</h1>
<a
href="."
>
<img
alt="Store logo"
class="storeLogo"
src="store-logo.png"
width="150em"
/>
</a>
</div>
</header>
<div
class="frontPage"
>
<div>
<p>
No items in basket. Reload the page
<a
href="."
>
here
</a>
to restore
</p>
<div>
<h3>
Total price:
0.00
</h3>
<h3>
You have not reached the 300 limit for a discount yet.
</h3>
</div>
</div>
<div
class="rightCollumn"
>
<div>
Loading...
</div>
<button
class="checkoutButton"
>
Checkout
</button>
</div>
</div>
</div>
</div>
</body>
❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19
❯ node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ src/App.test.tsx:8:19
|
src/components/productLine/productLine.test.tsx > ProductLine > Should remove the item:
src/components/productLine/productLine.test.tsx#L61
AssertionError: expected 2 to be 1 // Object.is equality
- Expected
+ Received
- 1
+ 2
❯ src/components/productLine/productLine.test.tsx:61:36
|
build
Process completed with exit code 1.
|
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|