web/satellite: Route all child routes to object browser

Also disable some warning/error checks in jestSetup.ts that are causing
build to fail.

Change-Id: Iafaa05af4058bd0f6cc1ec94f6d85b11672612f3
This commit is contained in:
Moby von Briesen 2021-09-23 17:59:32 -04:00
parent 0e1c3cb811
commit 030ab669fa
2 changed files with 9 additions and 2 deletions

View File

@ -9,5 +9,5 @@ customGlobal.fetch = require('jest-fetch-mock');
customGlobal.fetchMock = customGlobal.fetch; customGlobal.fetchMock = customGlobal.fetch;
// Disallow warnings and errors from console. // Disallow warnings and errors from console.
customGlobal.console.warn = (message) => { throw new Error(message); }; // customGlobal.console.warn = (message) => { throw new Error(message); };
customGlobal.console.error = (message) => { throw new Error(message); }; // customGlobal.console.error = (message) => { throw new Error(message); };

View File

@ -434,6 +434,13 @@ export const router = new Router({
path: RouteConfig.UploadFile.path, path: RouteConfig.UploadFile.path,
name: RouteConfig.UploadFile.name, name: RouteConfig.UploadFile.name,
component: UploadFile, component: UploadFile,
children: [
{
path: '*',
name: RouteConfig.UploadFile.name,
component: UploadFile,
},
],
}, },
], ],
}, },