fix CI/CD error: Check failure on line 40 in .github/workflows/main.yml #2
main.yml
on: push
Build and unit test
42s
Firebase deploy
0s
Annotations
3 errors
src/App.test.jsx > counter tests > Counter should be 0 at the start:
src/App.test.jsx#L9
TestingLibraryElementError: Unable to find an element with the text: count is: 0. 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>
❯ 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.jsx:9:19
|
src/App.test.jsx > counter tests > Counter should increment by one when clicked:
src/App.test.jsx#L14
TestingLibraryElementError: Unable to find an accessible element with the role "button"
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 />
</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.jsx:14:28
|
Build and unit test
Process completed with exit code 1.
|