feat: execute route and release recovery contracts
This commit is contained in:
@@ -6,7 +6,8 @@ import { createApplication } from "../../src/application/create-application.js";
|
||||
* session?: import("../../src/application/ports/auth-session-port.js").AuthSessionPort,
|
||||
* preferences?: import("../../src/application/ports/storage-port.js").StoragePort,
|
||||
* diagnostics?: import("../../src/application/ports/telemetry-port.js").TelemetryPort,
|
||||
* releaseInfo?: import("../../src/application/ports/release-info-port.js").ReleaseInfoPort
|
||||
* releaseInfo?: import("../../src/application/ports/release-info-port.js").ReleaseInfoPort,
|
||||
* navigation?: { reload(): void }
|
||||
* }} [overrides]
|
||||
*/
|
||||
export function createTestApplication(overrides = {}) {
|
||||
@@ -29,7 +30,23 @@ export function createTestApplication(overrides = {}) {
|
||||
configSchemaVersion: "1",
|
||||
apiContractVersion: "1",
|
||||
assetManifestHash: "test-hash",
|
||||
routeChunks: {
|
||||
"route-home": "assets/home.js",
|
||||
"route-sample-resources": "assets/sample.js",
|
||||
},
|
||||
}),
|
||||
refresh: async () => ({
|
||||
buildId: "test-build",
|
||||
releaseId: "test-release",
|
||||
configSchemaVersion: "1",
|
||||
apiContractVersion: "1",
|
||||
assetManifestHash: "test-hash",
|
||||
routeChunks: {
|
||||
"route-home": "assets/home.js",
|
||||
"route-sample-resources": "assets/sample.js",
|
||||
},
|
||||
}),
|
||||
},
|
||||
navigation: overrides.navigation ?? { reload: () => {} },
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user