Merge branch 'main' into dependabot/npm_and_yarn/types/node-20.14.11 #860
Annotations
10 errors and 1 warning
build (18)
@react-testing/vitest#test: command (/home/runner/work/ml-frontend/ml-frontend/code/react/testing-vitest) /home/runner/setup-pnpm/node_modules/.bin/pnpm run test exited (1)
|
../module-api-graphql/src/components/user-list.test.tsx > UserList > Should render user list when page loaded:
code/react/module-api-graphql/src/components/user-list.test.tsx#L26
TestingLibraryElementError: Unable to find an accessible element with the role "listitem"
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>
<span
aria-label="error"
>
Error
</span>
</div>
</body>
❯ Object.getElementError ../../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:37:19
❯ ../../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ ../../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:109:15
❯ ../module-api-graphql/src/components/user-list.test.tsx:26:14
|
../module-api-graphql/src/components/user-view.test.tsx > UserView > Should render user when page loaded:
code/react/module-api-graphql/src/components/user-view.test.tsx#L27
TestingLibraryElementError: Unable to find an accessible element with the role "heading" and name "John"
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>
<span
aria-label="error"
>
Error
</span>
</div>
</body>
❯ Object.getElementError ../../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:37:19
❯ ../../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ ../../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ ../../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ ../module-api-graphql/src/components/user-view.test.tsx:27:14
|
../module-api-graphql/src/hooks/use-user.test.tsx > useUsers > Should fetch users and update loading and error state:
code/react/module-api-graphql/src/hooks/use-user.test.tsx#L29
AssertionError: expected undefined to strictly equal [ { …(2) }, { …(2) }, { …(2) } ]
- Expected:
Array [
Object {
"id": "f79e82e8-c34a-4dc7-a49e-9fadc0979fda",
"name": "John",
},
Object {
"id": "l7rWHn41-f5G9-6iBf-DV2T-yhYhhtD1kFbz",
"name": "Paul",
},
Object {
"id": "kOnspSl2-U70y-ffLq-32bi-aG5FtG0J18mn",
"name": "George",
},
]
+ Received:
undefined
❯ ../module-api-graphql/src/hooks/use-user.test.tsx:29:33
|
../module-api-graphql/src/hooks/use-user.test.tsx > useUser > Should fetch user and set loading and error state:
code/react/module-api-graphql/src/hooks/use-user.test.tsx#L58
AssertionError: expected undefined to strictly equal { …(2) }
- Expected:
Object {
"id": "l7rWHn41-f5G9-6iBf-DV2T-yhYhhtD1kFbz",
"name": "Paul",
}
+ Received:
undefined
❯ ../module-api-graphql/src/hooks/use-user.test.tsx:58:33
|
../module-api-graphql/src/hooks/use-user.test.tsx > useAddUser > Should add a user without any errors:
code/react/module-api-graphql/src/hooks/use-user.test.tsx#L73
AssertionError: expected undefined to match object { name: 'Ringo' }
- Expected:
Object {
"name": "Ringo",
}
+ Received:
undefined
❯ ../module-api-graphql/src/hooks/use-user.test.tsx:73:33
|
../module-api-graphql/src/hooks/use-user.test.tsx > useUpdateUser > Should update a user without any errors:
code/react/module-api-graphql/src/hooks/use-user.test.tsx#L89
AssertionError: expected undefined to strictly equal { …(2) }
- Expected:
Object {
"id": "f79e82e8-c34a-4dc7-a49e-9fadc0979fda",
"name": "Brian",
}
+ Received:
undefined
❯ ../module-api-graphql/src/hooks/use-user.test.tsx:89:33
|
../module-api-graphql/src/hooks/use-user.test.tsx > useRemoveUser > Should remove a user without any errors:
code/react/module-api-graphql/src/hooks/use-user.test.tsx#L104
AssertionError: expected 'error' to be 'success' // Object.is equality
- Expected
+ Received
- success
+ error
❯ ../module-api-graphql/src/hooks/use-user.test.tsx:104:35
|
../module-api-restful/src/components/user-list.test.tsx > UserList > Should render user list when page loaded:
code/react/module-api-restful/src/components/user-list.test.tsx#L26
TestingLibraryElementError: Unable to find an accessible element with the role "listitem"
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>
<span
aria-label="error"
>
Error
</span>
</div>
</body>
❯ Object.getElementError ../../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:37:19
❯ ../../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ ../../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:109:15
❯ ../module-api-restful/src/components/user-list.test.tsx:26:14
|
../module-api-restful/src/components/user-view.test.tsx > UserView > Should render user when page loaded:
code/react/module-api-restful/src/components/user-view.test.tsx#L27
TestingLibraryElementError: Unable to find an accessible element with the role "heading" and name "John"
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>
<span
aria-label="error"
>
Error
</span>
</div>
</body>
❯ Object.getElementError ../../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:37:19
❯ ../../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ ../../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ ../../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ ../module-api-restful/src/components/user-view.test.tsx:27:14
|
build (18)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|