Feat/timeout in is app fetching check #68
Annotations
2 errors
Unit tests:
src/providers/TutorialProvider/TutorialProvider.test.tsx#L505
AssertionError: expected "spy" to be called with arguments: [ StringContaining{…}, …(1) ]
Received:
1st spy call:
Array [
- StringContaining "Could not find all",
- ArrayContaining [
- null,
- ],
+ "Warning: An update to %s inside a test was not wrapped in act(...).
+
+ When testing, code that causes React state updates should be wrapped into act(...):
+
+ act(() => {
+ /* fire events that update state */
+ });
+ /* assert on the output */
+
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act%s",
+ "TutorialProvider",
+ "
+ at TutorialProvider (/home/runner/work/subsurface-app-management/subsurface-app-management/src/providers/TutorialProvider/TutorialProvider.tsx:22:3)
+ at QueryClientProvider (file:///home/runner/work/subsurface-app-management/subsurface-app-management/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js:20:3)
+ at RenderedRoute (/home/runner/work/subsurface-app-management/subsurface-app-management/node_modules/react-router/dist/umd/react-router.development.js:539:7)
+ at RenderErrorBoundary (/home/runner/work/subsurface-app-management/subsurface-app-management/node_modules/react-router/dist/umd/react-router.development.js:486:7)
+ at DataRoutes (/home/runner/work/subsurface-app-management/subsurface-app-management/node_modules/react-router-dom/dist/umd/react-router-dom.development.js:683:7)
+ at Router (/home/runner/work/subsurface-app-management/subsurface-app-management/node_modules/react-router/dist/umd/react-router.development.js:1174:17)
+ at RouterProvider (/home/runner/work/subsurface-app-management/subsurface-app-management/node_modules/react-router-dom/dist/umd/react-router-dom.development.js:455:7)",
]
2nd spy call:
Array [
- StringContaining "Could not find all",
- ArrayContaining [
- null,
- ],
+ "Warning: An update to %s inside a test was not wrapped in act(...).
+
+ When testing, code that causes React state updates should be wrapped into act(...):
+
+ act(() => {
+ /* fire events that update state */
+ });
+ /* assert on the output */
+
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act%s",
+ "TutorialProviderInner",
+ "
+ at TutorialProviderInner (/home/runner/work/subsurface-app-management/subsurface-app-management/src/providers/TutorialProvider/TutorialProviderInner.tsx:20:46)
+ at TutorialProvider (/home/runner/work/subsurface-app-management/subsurface-app-management/src/providers/TutorialProvider/TutorialProvider.tsx:22:3)
+ at QueryClientProvider (file:///home/runner/work/subsurface-app-management/subsurface-app-management/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js:20:3)
+ at RenderedRoute (/home/runner/work/subsurface-app-management/subsurface-app-management/node_modules/react-router/dist/umd/react-router.development.js:539:7)
+ at RenderErrorBoundary (/home/runner/work/subsurface-app-management/subsurface-app-management/node_modules/react-router/dist/umd/react-router.development.js:486:7)
+ at DataRoutes (/home/runner/work/subsurface-app-management/subsurface-app-management/node_modules/react-router-dom/dist/umd/react-router-dom.development.js:683:7)
+ at Router (/home/runner/work/subsurface-app-management/subsurface-app-management/node_modules/react-router/dist/umd/react-router.development.js:1174:17)
+ at RouterProvider (/home/runner/work/subsurface-app-management/subsurface-app-management/node_modules/react-router-dom/dist/umd/react-router-dom.development.js:455:7)",
]
3rd spy call:
Array [
- StringContaining "Could not find all",
- ArrayContaining [
- null,
- ],
+ "Warning: An update to %s inside a test was not wrapped in act(...).
+
+ When testing, code that causes React state updates should be wrapped into act(...):
+
+ act(() => {
+ /* fire events that update state */
+ });
+ /* assert on the output */
+
+ This ensure
|
Unit tests
Process completed with exit code 1.
|
Loading