Use Vitest browser to test react-admin #9640
test.yml
on: pull_request
typecheck
3m 47s
doc-videos-format-check
14s
doc-check
29s
create-react-admin
0s
GreenFrame
0s
update-sandbox-repository
0s
Annotations
10 errors and 8 warnings
packages/ra-core/src/core/Resource.spec.tsx > <Resource> > renders resource routes by default:
packages/ra-core/src/store/StoreContextProvider.tsx#L10
TestingLibraryElementError: Unable to find an element with the text: PostList. 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>
<h2>
Unexpected Application Error!
</h2>
<h3
style="font-style: italic;"
>
Cannot read properties of null (reading 'useEffect')
</h3>
<pre
style="padding: 0.5rem; background-color: rgba(200, 200, 200, 0.5);"
>
TypeError: Cannot read properties of null (reading 'useEffect')
at useEffect (http://localhost:63315/node_modules/.vite/deps/chunk-ZMLY2J2T.js?v=2fed52ba:1078:29)
at StoreContextProvider (http://localhost:63315/packages/ra-core/src/store/StoreContextProvider.tsx:8:3)
at renderWithHooks (http://localhost:63315/node_modules/.vite/deps/chunk-VCHWBZ6P.js?v=ce568e40:11414:26)
at mountIndeterminateComponent (http://localhost:63315/node_modules/.vite/deps/chunk-VCHWBZ6P.js?v=ce568e40:14792:21)
at beginWork (http://localhost:63315/node_modules/.vite/deps/chunk-VCHWBZ6P.js?v=ce568e40:15780:22)
at beginWork$1 (http://localhost:63315/node_modules/.vite/deps/chunk-VCHWBZ6P.js?v=ce568e40:19624:22)
at performUnitOfWork (http://localhost:63315/node_modules/.vite/deps/chunk-VCHWBZ6P.js?v=ce568e40:19072:20)
at workLoopSync (http://localhost:63315/node_modules/.vite/deps/chunk-VCHWBZ6P.js?v=ce568e40:19008:13)
at renderRootSync (http://localhost:63315/node_modules/.vite/deps/chunk-VCHWBZ6P.js?v=ce568e40:18987:15)
at recoverFromConcurrentError (http://localhost:63315/node_modules/.vite/deps/chunk-VCHWBZ6P.js?v=ce568e40:18604:28)
</pre>
<p>
💿 Hey developer 👋
</p>
<p>
You can provide a way better UX than this when your app throws errors by providing your own
<code
style="padding: 2px 4px; background-color: rgba(200, 200, 200, 0.5);"
>
ErrorBoundary
</code>
or
<code
style="padding: 2px 4px; background-color: rgba(200, 200, 200, 0.5);"
>
errorElement
</code>
prop on your route.
</p>
</div>
</body>
Ignored nodes: comments, script, style
<body>
<div>
<h2>
Unexpected Application Error!
</h2>
<h3
style="font-style: italic;"
>
Cannot read properties of null (reading 'useEffect')
</h3>
<pre
style="padding: 0.5rem; background-color: rgba(200, 200, 200, 0.5);"
>
TypeError: Cannot read properties of null (reading 'useEffect')
at useEffect (http://localhost:63315/node_modules/.vite/deps/chunk-ZMLY2J2T.js?v=2fed52ba:1078:29)
at StoreContextProvider (http://localhost:63315/packages/ra-core/src/store/StoreContextProvider.tsx:8:3)
at renderWithHooks (http://localhost:63315/node_modules/.vite/deps/chunk-VCHWBZ6P.js?v=ce568e40:11414:26)
at mountIndeterminateComponent (http://localhost:63315/node_modules/.vite/deps/chunk-VCHWBZ6P.js?v=ce568e40:14792:21)
at beginWork (http://localhost:63315/node_modules/.vite/deps/chunk-VCHWBZ6P.js?v=ce568e40:15780:22)
at beginWork$1 (http://localhost:63315/node_modules/.vite/deps/chunk-VCHWBZ6P.js?v=ce568e40:19624:22)
at performUnitOfWork (http://localhost:63315/node_modules/.vite/deps/chunk-VCHWBZ6P.js?v=ce568e40:19072:20)
at workLoopSync (http://localhost:63315/node_modules/.vite/deps/chunk-VCHWBZ6P.js?v=ce568e40:19008:13)
at renderRootSync (http://localhost:63315/node_modules/.vite/deps/chunk-VCHWBZ6P.js?v=ce568e40:18987:15)
at recoverFromConcurrentError (http://localhost:63315/node_modules/.vite/deps/chunk-VCHWBZ6P.js?v=ce568e40:18604:28)
</pre>
<p>
💿 Hey developer 👋
</p>
<p>
You can provide a way better UX than this when your app throws errors by providing your own
<code
style="padding: 2px 4px; background-color: rgba(200, 200, 200, 0.5);"
>
ErrorBoundary
</code>
or
<code
style="p
|
packages/ra-core/src/dataProvider/useGetRecordId.spec.tsx > useGetRecordId > should return the record id it received in options:
packages/ra-core/src/controller/record/useRecordContext.ts#L40
TypeError: Cannot read properties of null (reading 'useContext')
❯ useRecordContext packages/ra-core/src/controller/record/useRecordContext.ts:40:20
❯ useGetRecordId packages/ra-core/src/dataProvider/useGetRecordId.ts:18:26
❯ UseGetRecordId packages/ra-core/src/dataProvider/useGetRecordId.spec.tsx:9:22
|
packages/ra-core/src/dataProvider/useGetRecordId.spec.tsx > useGetRecordId > should return the record id it received in options even if it is falsy:
packages/ra-core/src/controller/record/useRecordContext.ts#L40
TypeError: Cannot read properties of null (reading 'useContext')
❯ useRecordContext packages/ra-core/src/controller/record/useRecordContext.ts:40:20
❯ useGetRecordId packages/ra-core/src/dataProvider/useGetRecordId.ts:18:26
❯ UseGetRecordId packages/ra-core/src/dataProvider/useGetRecordId.spec.tsx:9:22
|
packages/ra-core/src/dataProvider/useGetRecordId.spec.tsx > useGetRecordId > should return the record id it received through the record context:
packages/ra-core/src/controller/record/useRecordContext.ts#L40
TypeError: Cannot read properties of null (reading 'useContext')
❯ useRecordContext packages/ra-core/src/controller/record/useRecordContext.ts:40:20
❯ useGetRecordId packages/ra-core/src/dataProvider/useGetRecordId.ts:18:26
❯ UseGetRecordId packages/ra-core/src/dataProvider/useGetRecordId.spec.tsx:9:22
|
packages/ra-core/src/dataProvider/useGetRecordId.spec.tsx > useGetRecordId > should return the record id it received through the record context even if it is falsy:
packages/ra-core/src/controller/record/useRecordContext.ts#L40
TypeError: Cannot read properties of null (reading 'useContext')
❯ useRecordContext packages/ra-core/src/controller/record/useRecordContext.ts:40:20
❯ useGetRecordId packages/ra-core/src/dataProvider/useGetRecordId.ts:18:26
❯ UseGetRecordId packages/ra-core/src/dataProvider/useGetRecordId.spec.tsx:9:22
|
packages/ra-core/src/dataProvider/useGetRecordId.spec.tsx > useGetRecordId > should return the record id parsed from the location:
packages/ra-core/src/dataProvider/useGetRecordId.spec.tsx#L80
AssertionError: expected null not to be null
❯ packages/ra-core/src/dataProvider/useGetRecordId.spec.tsx:80:43
|
packages/ra-core/src/dataProvider/useGetRecordId.spec.tsx > useGetRecordId > should return the record id parsed from the location even if it is falsy:
packages/ra-core/src/dataProvider/useGetRecordId.spec.tsx#L102
AssertionError: expected null not to be null
❯ packages/ra-core/src/dataProvider/useGetRecordId.spec.tsx:102:41
|
packages/ra-core/src/dataProvider/useUpdate.spec.tsx > useUpdate > mutate > returns a callback that can be used with update arguments:
packages/ra-core/src/core/CoreAdminContext.tsx#L185
TypeError: Cannot read properties of null (reading 'useMemo')
❯ CoreAdminContext packages/ra-core/src/core/CoreAdminContext.tsx:185:29
|
packages/ra-core/src/dataProvider/useUpdate.spec.tsx > useUpdate > mutate > returns a callback that can be used with no arguments:
packages/ra-core/src/core/CoreAdminContext.tsx#L185
TypeError: Cannot read properties of null (reading 'useMemo')
❯ CoreAdminContext packages/ra-core/src/core/CoreAdminContext.tsx:185:29
|
packages/ra-core/src/dataProvider/useUpdate.spec.tsx > useUpdate > mutate > accepts falsy value that are not null nor undefined as the record id:
packages/ra-core/src/core/CoreAdminContext.tsx#L185
TypeError: Cannot read properties of null (reading 'useMemo')
❯ CoreAdminContext packages/ra-core/src/core/CoreAdminContext.tsx:185:29
|
doc-videos-format-check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
doc-check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
unit-test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
typecheck
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
e2e-test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
simple-example-typecheck
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
crm
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
e-commerce
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
demo-build
Expired
|
3.62 MB |
|
packages-build
Expired
|
3.24 MB |
|