import { IPackageConfig } from "@fluidframework/container-definitions";
import { IResolvedPackage } from "@fluidframework/web-code-loader";
import { IFluidPackage } from "@fluidframework/core-interfaces";
const cdnLink = "https://pragueauspkn.azureedge.net/@fluid-example/[email protected]/dist/main.bundle.js";
const linkedLibraryName = "main";
const scope = "@random";
const testPackage: IFluidPackage = {
name: `${scope}/name`,
version: "0.0.1",
fluid: {
browser: {
umd: {
files: [
cdnLink,
],
library: linkedLibraryName,
},
},
},
};
const testConfig: IPackageConfig = {
[`${scope}:cdn`]: cdnLink,
};
export const testResolvedPackage: IResolvedPackage = {
details: { // IFluidCodeDetails
package: testPackage,
config: testConfig,
},
parsed: {
full: "",
pkg: "",
name: "",
version: "",
scope: scope,
},
pkg: testPackage,
packageUrl: "",
};
See GitHub for more details on the Fluid Framework and packages within.