submodule for test collateral (#421)
* submodule for test collateral * remove test * comment * remove git module file * adding .gitmodule file
This commit is contained in:
Родитель
1e6037d924
Коммит
2e2b8f9f39
|
@ -0,0 +1,4 @@
|
|||
[submodule "packages/test/snapshots/content"]
|
||||
path = packages/test/snapshots/content
|
||||
url = https://github.com/microsoft/FluidFrameworkTestData
|
||||
branch = master
|
|
@ -1012,12 +1012,15 @@ export class ContainerRuntime extends EventEmitter implements IHostRuntime, IRun
|
|||
snapshotTree = buildHierarchy(flattened);
|
||||
}
|
||||
|
||||
// Include the type of attach message which is the pkg of the component to be
|
||||
// used by RemotedComponentContext in case it is not in the snapshot.
|
||||
remotedComponentContext = new RemotedComponentContext(
|
||||
attachMessage.id,
|
||||
snapshotTree,
|
||||
this,
|
||||
new DocumentStorageServiceProxy(this.storage, flatBlobs),
|
||||
this.context.scope);
|
||||
this.context.scope,
|
||||
[attachMessage.type]);
|
||||
|
||||
break;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"build:full": "npm run build",
|
||||
"build:full:compile": "npm run build:compile",
|
||||
"clean": "rimraf dist lib *.tsbuildinfo package-deps.json *.build.log",
|
||||
"test:experimental": "node --experimental-worker ../../../node_modules/mocha/bin/_mocha --recursive dist/test",
|
||||
"test": "node --experimental-worker ../../../node_modules/mocha/bin/_mocha --recursive dist/test",
|
||||
"test:sequential": "node ../../../node_modules/mocha/bin/_mocha --recursive dist/test",
|
||||
"test:coverage": "nyc npm test -- --reporter mocha-junit-reporter --reporter-options mochaFile=nyc/junit-report.xml",
|
||||
"test:generate": "node --experimental-worker dist/generateSnapshotFiles.js",
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
import { ReplayArgs, ReplayTool } from "@microsoft/fluid-replay-tool";
|
||||
import * as fs from "fs";
|
||||
|
||||
const fileLocation: string = "content";
|
||||
const fileLocation: string = "content/snapshotTestContent";
|
||||
|
||||
export enum Mode {
|
||||
Write, // write out files
|
||||
|
@ -113,6 +113,7 @@ export async function processContent(mode: Mode, concurrently = true) {
|
|||
});
|
||||
|
||||
promises.push(work);
|
||||
|
||||
}
|
||||
|
||||
return Promise.all(promises);
|
||||
|
|
|
@ -14,7 +14,7 @@ describe("Snapshots", function() {
|
|||
return processContent(Mode.Stress);
|
||||
});
|
||||
|
||||
it("Backward Compat", async () => {
|
||||
return processContent(Mode.Compare);
|
||||
});
|
||||
// it("Backward Compat", async () => {
|
||||
// return processContent(Mode.Compare);
|
||||
// });
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче