run tests only on the app, not the workspace package #177
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
Annotations
2 errors
|
packages/components/test/components/Folder.test.tsx > Folder Component > fetches file data and displays files on mount:
packages/components/test/components/Folder.test.tsx#L28
TestingLibraryElementError: Found multiple elements with the text: /
Here are the matching elements:
Ignored nodes: comments, script, style
<a
href="/files"
>
/
</a>
Ignored nodes: comments, script, style
<a
href="/files?key=/"
>
/
</a>
(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).
Ignored nodes: comments, script, style
<body>
<div>
<main
class="main"
>
<nav
class="nav"
>
<a
class="brand"
href="/"
>
hyperparam
</a>
</nav>
<div
class="content-container"
>
<div
class="content"
>
<nav
class="top-header"
>
<div
class="path"
>
<a
href="/files"
>
/
</a>
<a
href="/files?key=/"
>
/
</a>
</div>
</nav>
<ul
class="file-list"
>
<li>
<a
href="/files?key=folder1/"
>
<span
class="file-name file folder"
>
folder1/
</span>
</a>
</li>
<li>
<a
href="/files?key=file1.txt"
>
<span
class="file-name file"
>
file1.txt
</span>
<span
class="file-size"
title="8,196 bytes"
>
8196
</span>
<span
class="file-date"
title="2023-01-01T00:00:00Z"
>
2023-01-01T00:00:00Z
</span>
</a>
</li>
</ul>
</div>
<div
class="error-bar"
/>
</div>
</main>
</div>
</body>
❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19
❯ getElementError node_modules/@testing-library/dom/dist/query-helpers.js:20:35
❯ getMultipleElementsFoundError node_modules/@testing-library/dom/dist/query-helpers.js:23:10
❯ node_modules/@testing-library/dom/dist/query-helpers.js:55:13
❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ packages/components/test/components/Folder.test.tsx:28:12
|
|
test
Process completed with exit code 1.
|