Skip to content

:wrench: conf: add react/no-array-index-key rule

Sign in for the full log view
GitHub Actions / Tests annotations (🧪 jest-coverage-report-action) failed Jan 21, 2024 in 0s

Test suite run failed

Failed tests: 3/134. Failed suites: 1/18.

Details

Created failed tests' annotations. To disable them, see documentation.

  ● src/app/about/page.test.tsx › should render About page with ContentLayout

    TestingLibraryElementError: Unable to find an accessible element with the role "presentation"

    There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole

    Ignored nodes: comments, script, style
    <body>
      <div>
        <div
          class="overflow-hidden"
          style="opacity: 0; transform: translateX(0px) translateY(200px) translateZ(0);"
        >
          children
        </div>
      </div>
    </body>

       6 |   it('should render About page with ContentLayout', () => {
       7 |     const { getByRole } = render(<Page />);
    >  8 |     expect(getByRole('presentation')).toBeInTheDocument();
         |            ^
       9 |   });
      10 |
      11 |   it('should render Animated text heading', () => {

      at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
      at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
      at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
      at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
      at Object.getByRole (src/app/about/page.test.tsx:8:12)

  ● src/app/about/page.test.tsx › should render Animated text heading

    TestingLibraryElementError: Unable to find an accessible element with the role "heading"

    There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole

    Ignored nodes: comments, script, style
    <body>
      <div>
        <div
          class="overflow-hidden"
          style="opacity: 0; transform: translateX(0px) translateY(200px) translateZ(0);"
        >
          children
        </div>
      </div>
    </body>

      11 |   it('should render Animated text heading', () => {
      12 |     const { getByRole } = render(<Page />);
    > 13 |     expect(getByRole('heading', { level: 1 })).toBeInTheDocument();
         |            ^
      14 |   });
      15 |
      16 |   it('should render Profile component', () => {

      at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
      at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
      at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
      at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
      at Object.getByRole (src/app/about/page.test.tsx:13:12)

  ● src/app/about/page.test.tsx › should render Profile component

    TestingLibraryElementError: Unable to find an accessible element with the role "grid"

    There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole

    Ignored nodes: comments, script, style
    <body>
      <div>
        <div
          class="overflow-hidden"
          style="opacity: 0; transform: translateX(0px) translateY(200px) translateZ(0);"
        >
          children
        </div>
      </div>
    </body>

      16 |   it('should render Profile component', () => {
      17 |     const { getByRole } = render(<Page />);
    > 18 |     expect(getByRole('grid')).toBeInTheDocument();
         |            ^
      19 |   });
      20 | });
      21 |

      at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
      at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
      at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
      at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
      at Object.getByRole (src/app/about/page.test.tsx:18:12)

Annotations

Check failure on line 6 in src/app/about/page.test.tsx

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

src/app/about/page.test.tsx > should render About page with ContentLayout

TestingLibraryElementError: Unable to find an accessible element with the role "presentation"

There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="overflow-hidden"
      style="opacity: 0; transform: translateX(0px) translateY(200px) translateZ(0);"
    >
      children
    </div>
  </div>
</body>
    at Object.getElementError (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/@testing-library/dom/dist/config.js:37:19)
    at /home/runner/work/bear29ers.com/bear29ers.com/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
    at /home/runner/work/bear29ers.com/bear29ers.com/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
    at /home/runner/work/bear29ers.com/bear29ers.com/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
    at Object.getByRole (/home/runner/work/bear29ers.com/bear29ers.com/src/app/about/page.test.tsx:8:12)
    at Promise.then.completed (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/utils.js:293:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/utils.js:226:10)
    at _callCircusTest (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/run.js:297:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/run.js:233:3)
    at _runTestsForDescribeBlock (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/run.js:135:9)
    at _runTestsForDescribeBlock (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/run.js:130:9)
    at run (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/run.js:68:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 11 in src/app/about/page.test.tsx

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

src/app/about/page.test.tsx > should render Animated text heading

TestingLibraryElementError: Unable to find an accessible element with the role "heading"

There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="overflow-hidden"
      style="opacity: 0; transform: translateX(0px) translateY(200px) translateZ(0);"
    >
      children
    </div>
  </div>
</body>
    at Object.getElementError (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/@testing-library/dom/dist/config.js:37:19)
    at /home/runner/work/bear29ers.com/bear29ers.com/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
    at /home/runner/work/bear29ers.com/bear29ers.com/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
    at /home/runner/work/bear29ers.com/bear29ers.com/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
    at Object.getByRole (/home/runner/work/bear29ers.com/bear29ers.com/src/app/about/page.test.tsx:13:12)
    at Promise.then.completed (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/utils.js:293:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/utils.js:226:10)
    at _callCircusTest (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/run.js:297:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/run.js:233:3)
    at _runTestsForDescribeBlock (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/run.js:135:9)
    at _runTestsForDescribeBlock (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/run.js:130:9)
    at run (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/run.js:68:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 16 in src/app/about/page.test.tsx

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

src/app/about/page.test.tsx > should render Profile component

TestingLibraryElementError: Unable to find an accessible element with the role "grid"

There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="overflow-hidden"
      style="opacity: 0; transform: translateX(0px) translateY(200px) translateZ(0);"
    >
      children
    </div>
  </div>
</body>
    at Object.getElementError (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/@testing-library/dom/dist/config.js:37:19)
    at /home/runner/work/bear29ers.com/bear29ers.com/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
    at /home/runner/work/bear29ers.com/bear29ers.com/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
    at /home/runner/work/bear29ers.com/bear29ers.com/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
    at Object.getByRole (/home/runner/work/bear29ers.com/bear29ers.com/src/app/about/page.test.tsx:18:12)
    at Promise.then.completed (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/utils.js:293:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/utils.js:226:10)
    at _callCircusTest (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/run.js:297:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/run.js:233:3)
    at _runTestsForDescribeBlock (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/run.js:135:9)
    at _runTestsForDescribeBlock (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/run.js:130:9)
    at run (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/run.js:68:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/bear29ers.com/bear29ers.com/node_modules/jest-runner/build/testWorker.js:106:12)