Error lines from build-log.txt
... skipping 203 lines ...
Run `npm audit` for details.
> ui@0.1.0 test
> react-app-rewired test
FAIL src/containers/BasicDetails/BasicDetails.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/BasicDetails/BasicDetails.test.tsx'
[0m [90m 12 |[39m [36mconst[39m { [33mProvider[39m[33m,[39m root } [33m=[39m createProviderAndStore(api)[33m;[39m
[90m 13 |[39m
[31m[1m>[22m[39m[90m 14 |[39m jest[33m.[39mmock([32m'react-router-dom'[39m[33m,[39m () [33m=>[39m {
... skipping 2 lines ...
[90m 16 |[39m useNavigate[33m:[39m () [33m=>[39m {
[90m 17 |[39m [36mreturn[39m {[0m
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.mock (src/containers/BasicDetails/BasicDetails.test.tsx:14:6)
FAIL src/containers/Rating/Rating.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Rating/Rating.test.tsx'
[0m [90m 11 |[39m [36mconst[39m { [33mProvider[39m[33m,[39m root } [33m=[39m createProviderAndStore(api)[33m;[39m
[90m 12 |[39m
[31m[1m>[22m[39m[90m 13 |[39m jest[33m.[39mmock([32m'react-router-dom'[39m[33m,[39m () [33m=>[39m {
... skipping 2 lines ...
[90m 15 |[39m useNavigate[33m:[39m () [33m=>[39m {
[90m 16 |[39m [36mreturn[39m {[0m
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.mock (src/containers/Rating/Rating.test.tsx:13:6)
FAIL src/containers/Header/Header.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Header/Header.test.tsx'
[0m [90m 2 |[39m [36mimport[39m { mount } [36mfrom[39m [32m'enzyme'[39m[33m;[39m
[90m 3 |[39m [36mimport[39m { when } [36mfrom[39m [32m'mobx'[39m[33m;[39m
[31m[1m>[22m[39m[90m 4 |[39m [36mimport[39m { [33mBrowserRouter[39m [36mas[39m [33mRouter[39m } [36mfrom[39m [32m'react-router-dom'[39m[33m;[39m
... skipping 2 lines ...
[90m 6 |[39m [36mimport[39m [33mHeader[39m [36mfrom[39m [32m'.'[39m[33m;[39m
[90m 7 |[39m [36mimport[39m [33mSearch[39m [36mfrom[39m [32m'../../containers/Search'[39m[33m;[39m[0m
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.require (src/containers/Header/Header.test.tsx:4:1)
FAIL src/containers/Details/Details.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Details/Details.test.tsx'
[0m [90m 14 |[39m [36mconst[39m { [33mProvider[39m[33m,[39m root } [33m=[39m createProviderAndStore(api)[33m;[39m
[90m 15 |[39m
[31m[1m>[22m[39m[90m 16 |[39m jest[33m.[39mmock([32m'react-router-dom'[39m[33m,[39m () [33m=>[39m {
... skipping 4 lines ...
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.mock (src/containers/Details/Details.test.tsx:16:6)
PASS src/store/platform.test.ts
PASS src/store/kind.test.ts
FAIL src/containers/Search/Search.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/Search.test.tsx'
[0m [90m 12 |[39m [36mconst[39m { [33mProvider[39m[33m,[39m root } [33m=[39m createProviderAndStore(api)[33m;[39m
[90m 13 |[39m
[31m[1m>[22m[39m[90m 14 |[39m jest[33m.[39mmock([32m'react-router-dom'[39m[33m,[39m () [33m=>[39m ({
... skipping 2 lines ...
[90m 16 |[39m replace[33m:[39m jest[33m.[39mfn()
[90m 17 |[39m })[0m
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.mock (src/containers/Search/Search.test.tsx:14:6)
FAIL src/containers/CatalogFilter/CatalogFilter.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 10 lines ...
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.require (src/containers/Search/index.tsx:2:1)
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/store/root.tsx:5:1)
at Object.require (src/containers/CatalogFilter/CatalogFilter.test.tsx:4:1)
FAIL src/containers/CategoryFilter/CategoryFilter.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 12 lines ...
at Object.require (src/containers/Search/index.tsx:2:1)
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/store/root.tsx:5:1)
at Object.require (src/containers/CategoryFilter/index.tsx:3:1)
at Object.require (src/containers/CategoryFilter/CategoryFilter.test.tsx:3:1)
FAIL src/containers/KindFilter/KindFilter.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 10 lines ...
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.require (src/containers/Search/index.tsx:2:1)
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/store/root.tsx:5:1)
at Object.require (src/containers/KindFilter/KindFilter.test.tsx:4:1)
FAIL src/store/resource.test.ts
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 8 lines ...
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.require (src/containers/Search/index.tsx:2:1)
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/store/resource.test.ts:1:1)
FAIL src/components/Description/Description.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 10 lines ...
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.require (src/containers/Search/index.tsx:2:1)
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/store/root.tsx:5:1)
at Object.require (src/components/Description/Description.test.tsx:6:1)
FAIL src/containers/App/App.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 10 lines ...
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.require (src/containers/Search/index.tsx:2:1)
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/store/root.tsx:5:1)
at Object.require (src/containers/App/App.test.tsx:4:1)
FAIL src/components/Cards/Cards.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 8 lines ...
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.require (src/containers/Search/index.tsx:2:1)
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/components/Cards/Cards.test.tsx:5:1)
FAIL src/containers/Resources/Resources.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Resources/Resources.test.tsx'
[0m [90m 3 |[39m [36mimport[39m { when } [36mfrom[39m [32m'mobx'[39m[33m;[39m
[90m 4 |[39m [36mimport[39m { [33mEmptyState[39m[33m,[39m [33mGalleryItem[39m[33m,[39m [33mButton[39m } [36mfrom[39m [32m'@patternfly/react-core'[39m[33m;[39m
[31m[1m>[22m[39m[90m 5 |[39m [36mimport[39m { [33mBrowserRouter[39m [36mas[39m [33mRouter[39m } [36mfrom[39m [32m'react-router-dom'[39m[33m;[39m
... skipping 3 lines ...
[90m 8 |[39m [36mimport[39m [33mCards[39m [36mfrom[39m [32m'../../components/Cards'[39m[33m;[39m[0m
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.require (src/containers/Resources/Resources.test.tsx:5:1)
PASS src/store/tag.test.ts
FAIL src/containers/PlatformFilter/PlatformFilter.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 10 lines ...
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.require (src/containers/Search/index.tsx:2:1)
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/store/root.tsx:5:1)
at Object.require (src/containers/PlatformFilter/PlatformFilter.test.tsx:6:1)
FAIL src/containers/ParseUrl/ParseUrl.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 10 lines ...
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.require (src/containers/Search/index.tsx:2:1)
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/store/root.tsx:5:1)
at Object.require (src/containers/ParseUrl/ParseUrl.test.tsx:3:1)
FAIL src/components/PageNotFound/PageNotFound.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/components/PageNotFound/PageNotFound.test.tsx'
[0m [90m 3 |[39m [36mimport[39m { [33mPageNotFound[39m } [36mfrom[39m [32m'./index'[39m[33m;[39m
[90m 4 |[39m
[31m[1m>[22m[39m[90m 5 |[39m jest[33m.[39mmock([32m'react-router-dom'[39m[33m,[39m () [33m=>[39m {
... skipping 4 lines ...
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.mock (src/components/PageNotFound/PageNotFound.test.tsx:5:6)
PASS src/components/Icon/Icon.test.tsx (5.232 s)
PASS src/store/provider.test.ts
FAIL src/utils/updateUrl.test.ts
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 13 lines ...
at Object.require (src/utils/updateUrl.ts:2:1)
at Object.require (src/utils/updateUrl.test.ts:1:1)
PASS src/store/utils.test.ts
PASS src/components/Readme/Readme.test.tsx (5.69 s)
PASS src/components/Yaml/Yaml.test.tsx
FAIL src/containers/SortDropDown/SortDropDown.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 13 lines ...
at Object.require (src/store/root.tsx:5:1)
at Object.require (src/containers/SortDropDown/SortDropDown.test.tsx:5:1)
PASS src/common/trimUrl.test.ts
PASS src/components/Footer/Footer.test.tsx
PASS src/common/scrollToTop.test.ts
FAIL src/containers/UserProfile/UserProfile.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 13 lines ...
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/store/root.tsx:5:1)
at Object.require (src/containers/UserProfile/index.tsx:13:1)
at Object.require (src/containers/UserProfile/UserProfile.test.tsx:4:1)
PASS src/common/titlecase.test.ts
FAIL src/components/Filter/Filter.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 8 lines ...
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.require (src/containers/Search/index.tsx:2:1)
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/components/Filter/Filter.test.tsx:7:1)
FAIL src/components/ResourceDetailsPage/ResourceDetailsPage.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Details/index.tsx'
Require stack:
src/containers/Details/index.tsx
src/components/ResourceDetailsPage/index.tsx
... skipping 12 lines ...
at Object.require (src/components/ResourceDetailsPage/index.tsx:3:1)
at Object.require (src/components/ResourceDetailsPage/ResourceDetailsPage.test.tsx:3:1)
PASS src/components/TooltipDisplay/TooltipDisplay.test.tsx (6.258 s)
PASS src/components/AlertDisplay/AlertDisplay.test.tsx
PASS src/components/Background/Background.test.tsx
FAIL src/components/LeftPane/LeftPane.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 14 lines ...
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/store/root.tsx:5:1)
at Object.require (src/containers/CatalogFilter/index.tsx:4:1)
at Object.require (src/components/LeftPane/index.tsx:4:1)
at Object.require (src/components/LeftPane/LeftPane.test.tsx:2:1)
FAIL src/components/HomePage/HomePage.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 21 lines ...
PASS src/store/category.test.ts (8.204 s)
PASS src/store/catalog.test.ts (9.201 s)
PASS src/store/auth.test.ts (10.555 s)
Summary of all failing tests
FAIL src/containers/BasicDetails/BasicDetails.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/BasicDetails/BasicDetails.test.tsx'
[0m [90m 12 |[39m [36mconst[39m { [33mProvider[39m[33m,[39m root } [33m=[39m createProviderAndStore(api)[33m;[39m
[90m 13 |[39m
[31m[1m>[22m[39m[90m 14 |[39m jest[33m.[39mmock([32m'react-router-dom'[39m[33m,[39m () [33m=>[39m {
... skipping 2 lines ...
[90m 16 |[39m useNavigate[33m:[39m () [33m=>[39m {
[90m 17 |[39m [36mreturn[39m {[0m
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.mock (src/containers/BasicDetails/BasicDetails.test.tsx:14:6)
FAIL src/containers/Rating/Rating.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Rating/Rating.test.tsx'
[0m [90m 11 |[39m [36mconst[39m { [33mProvider[39m[33m,[39m root } [33m=[39m createProviderAndStore(api)[33m;[39m
[90m 12 |[39m
[31m[1m>[22m[39m[90m 13 |[39m jest[33m.[39mmock([32m'react-router-dom'[39m[33m,[39m () [33m=>[39m {
... skipping 2 lines ...
[90m 15 |[39m useNavigate[33m:[39m () [33m=>[39m {
[90m 16 |[39m [36mreturn[39m {[0m
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.mock (src/containers/Rating/Rating.test.tsx:13:6)
FAIL src/containers/Header/Header.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Header/Header.test.tsx'
[0m [90m 2 |[39m [36mimport[39m { mount } [36mfrom[39m [32m'enzyme'[39m[33m;[39m
[90m 3 |[39m [36mimport[39m { when } [36mfrom[39m [32m'mobx'[39m[33m;[39m
[31m[1m>[22m[39m[90m 4 |[39m [36mimport[39m { [33mBrowserRouter[39m [36mas[39m [33mRouter[39m } [36mfrom[39m [32m'react-router-dom'[39m[33m;[39m
... skipping 2 lines ...
[90m 6 |[39m [36mimport[39m [33mHeader[39m [36mfrom[39m [32m'.'[39m[33m;[39m
[90m 7 |[39m [36mimport[39m [33mSearch[39m [36mfrom[39m [32m'../../containers/Search'[39m[33m;[39m[0m
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.require (src/containers/Header/Header.test.tsx:4:1)
FAIL src/containers/Details/Details.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Details/Details.test.tsx'
[0m [90m 14 |[39m [36mconst[39m { [33mProvider[39m[33m,[39m root } [33m=[39m createProviderAndStore(api)[33m;[39m
[90m 15 |[39m
[31m[1m>[22m[39m[90m 16 |[39m jest[33m.[39mmock([32m'react-router-dom'[39m[33m,[39m () [33m=>[39m {
... skipping 2 lines ...
[90m 18 |[39m useNavigate[33m:[39m () [33m=>[39m {
[90m 19 |[39m [36mreturn[39m {[0m
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.mock (src/containers/Details/Details.test.tsx:16:6)
FAIL src/containers/Search/Search.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/Search.test.tsx'
[0m [90m 12 |[39m [36mconst[39m { [33mProvider[39m[33m,[39m root } [33m=[39m createProviderAndStore(api)[33m;[39m
[90m 13 |[39m
[31m[1m>[22m[39m[90m 14 |[39m jest[33m.[39mmock([32m'react-router-dom'[39m[33m,[39m () [33m=>[39m ({
... skipping 2 lines ...
[90m 16 |[39m replace[33m:[39m jest[33m.[39mfn()
[90m 17 |[39m })[0m
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.mock (src/containers/Search/Search.test.tsx:14:6)
FAIL src/containers/CatalogFilter/CatalogFilter.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 10 lines ...
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.require (src/containers/Search/index.tsx:2:1)
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/store/root.tsx:5:1)
at Object.require (src/containers/CatalogFilter/CatalogFilter.test.tsx:4:1)
FAIL src/containers/CategoryFilter/CategoryFilter.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 12 lines ...
at Object.require (src/containers/Search/index.tsx:2:1)
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/store/root.tsx:5:1)
at Object.require (src/containers/CategoryFilter/index.tsx:3:1)
at Object.require (src/containers/CategoryFilter/CategoryFilter.test.tsx:3:1)
FAIL src/containers/KindFilter/KindFilter.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 10 lines ...
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.require (src/containers/Search/index.tsx:2:1)
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/store/root.tsx:5:1)
at Object.require (src/containers/KindFilter/KindFilter.test.tsx:4:1)
FAIL src/store/resource.test.ts
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 8 lines ...
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.require (src/containers/Search/index.tsx:2:1)
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/store/resource.test.ts:1:1)
FAIL src/components/Description/Description.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 10 lines ...
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.require (src/containers/Search/index.tsx:2:1)
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/store/root.tsx:5:1)
at Object.require (src/components/Description/Description.test.tsx:6:1)
FAIL src/containers/App/App.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 10 lines ...
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.require (src/containers/Search/index.tsx:2:1)
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/store/root.tsx:5:1)
at Object.require (src/containers/App/App.test.tsx:4:1)
FAIL src/components/Cards/Cards.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 8 lines ...
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.require (src/containers/Search/index.tsx:2:1)
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/components/Cards/Cards.test.tsx:5:1)
FAIL src/containers/Resources/Resources.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Resources/Resources.test.tsx'
[0m [90m 3 |[39m [36mimport[39m { when } [36mfrom[39m [32m'mobx'[39m[33m;[39m
[90m 4 |[39m [36mimport[39m { [33mEmptyState[39m[33m,[39m [33mGalleryItem[39m[33m,[39m [33mButton[39m } [36mfrom[39m [32m'@patternfly/react-core'[39m[33m;[39m
[31m[1m>[22m[39m[90m 5 |[39m [36mimport[39m { [33mBrowserRouter[39m [36mas[39m [33mRouter[39m } [36mfrom[39m [32m'react-router-dom'[39m[33m;[39m
... skipping 2 lines ...
[90m 7 |[39m [36mimport[39m { createProviderAndStore } [36mfrom[39m [32m'../../store/root'[39m[33m;[39m
[90m 8 |[39m [36mimport[39m [33mCards[39m [36mfrom[39m [32m'../../components/Cards'[39m[33m;[39m[0m
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.require (src/containers/Resources/Resources.test.tsx:5:1)
FAIL src/containers/PlatformFilter/PlatformFilter.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 10 lines ...
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.require (src/containers/Search/index.tsx:2:1)
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/store/root.tsx:5:1)
at Object.require (src/containers/PlatformFilter/PlatformFilter.test.tsx:6:1)
FAIL src/containers/ParseUrl/ParseUrl.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 10 lines ...
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.require (src/containers/Search/index.tsx:2:1)
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/store/root.tsx:5:1)
at Object.require (src/containers/ParseUrl/ParseUrl.test.tsx:3:1)
FAIL src/components/PageNotFound/PageNotFound.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/components/PageNotFound/PageNotFound.test.tsx'
[0m [90m 3 |[39m [36mimport[39m { [33mPageNotFound[39m } [36mfrom[39m [32m'./index'[39m[33m;[39m
[90m 4 |[39m
[31m[1m>[22m[39m[90m 5 |[39m jest[33m.[39mmock([32m'react-router-dom'[39m[33m,[39m () [33m=>[39m {
... skipping 2 lines ...
[90m 7 |[39m useNavigate[33m:[39m () [33m=>[39m {
[90m 8 |[39m [36mreturn[39m {[0m
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.mock (src/components/PageNotFound/PageNotFound.test.tsx:5:6)
FAIL src/utils/updateUrl.test.ts
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 10 lines ...
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.require (src/containers/Search/index.tsx:2:1)
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/utils/updateUrl.ts:2:1)
at Object.require (src/utils/updateUrl.test.ts:1:1)
FAIL src/containers/SortDropDown/SortDropDown.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 10 lines ...
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.require (src/containers/Search/index.tsx:2:1)
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/store/root.tsx:5:1)
at Object.require (src/containers/SortDropDown/SortDropDown.test.tsx:5:1)
FAIL src/containers/UserProfile/UserProfile.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 12 lines ...
at Object.require (src/containers/Search/index.tsx:2:1)
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/store/root.tsx:5:1)
at Object.require (src/containers/UserProfile/index.tsx:13:1)
at Object.require (src/containers/UserProfile/UserProfile.test.tsx:4:1)
FAIL src/components/Filter/Filter.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 8 lines ...
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.require (src/containers/Search/index.tsx:2:1)
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/components/Filter/Filter.test.tsx:7:1)
FAIL src/components/ResourceDetailsPage/ResourceDetailsPage.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Details/index.tsx'
Require stack:
src/containers/Details/index.tsx
src/components/ResourceDetailsPage/index.tsx
... skipping 9 lines ...
at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
at Object.require (src/containers/Details/index.tsx:3:1)
at Object.require (src/components/ResourceDetailsPage/index.tsx:3:1)
at Object.require (src/components/ResourceDetailsPage/ResourceDetailsPage.test.tsx:3:1)
FAIL src/components/LeftPane/LeftPane.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 14 lines ...
at Object.require (src/store/resource.ts:15:1)
at Object.require (src/store/root.tsx:5:1)
at Object.require (src/containers/CatalogFilter/index.tsx:4:1)
at Object.require (src/components/LeftPane/index.tsx:4:1)
at Object.require (src/components/LeftPane/LeftPane.test.tsx:2:1)
FAIL src/components/HomePage/HomePage.test.tsx
● Test suite failed to run
Cannot find module 'react-router-dom' from 'src/containers/Search/index.tsx'
Require stack:
src/containers/Search/index.tsx
src/store/resource.ts
... skipping 17 lines ...
at Object.require (src/containers/CatalogFilter/index.tsx:4:1)
at Object.require (src/components/LeftPane/index.tsx:4:1)
at Object.require (src/components/HomePage/index.tsx:3:1)
at Object.require (src/components/HomePage/HomePage.test.tsx:3:1)
Test Suites: 23 failed, 18 passed, 41 total
Tests: 58 passed, 58 total
Snapshots: 25 passed, 25 total
Time: 12.282 s
Ran all test suites.
make: *** [Makefile:69: ui-test] Error 1
ERROR: ui unit test failed
+ EXIT_VALUE=1
+ set +o xtrace