* submodule for test collateral

* remove test

* comment

* remove git module file

* adding .gitmodule file
This commit is contained in:
Jatin Garg 2019-10-28 15:28:45 -07:00 коммит произвёл GitHub
Родитель 1e6037d924
Коммит 2e2b8f9f39
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 14 добавлений и 6 удалений

4
.gitmodules поставляемый Normal file
Просмотреть файл

@ -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); 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( remotedComponentContext = new RemotedComponentContext(
attachMessage.id, attachMessage.id,
snapshotTree, snapshotTree,
this, this,
new DocumentStorageServiceProxy(this.storage, flatBlobs), new DocumentStorageServiceProxy(this.storage, flatBlobs),
this.context.scope); this.context.scope,
[attachMessage.type]);
break; break;

Просмотреть файл

@ -11,7 +11,7 @@
"build:full": "npm run build", "build:full": "npm run build",
"build:full:compile": "npm run build:compile", "build:full:compile": "npm run build:compile",
"clean": "rimraf dist lib *.tsbuildinfo package-deps.json *.build.log", "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: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:coverage": "nyc npm test -- --reporter mocha-junit-reporter --reporter-options mochaFile=nyc/junit-report.xml",
"test:generate": "node --experimental-worker dist/generateSnapshotFiles.js", "test:generate": "node --experimental-worker dist/generateSnapshotFiles.js",

Просмотреть файл

@ -6,7 +6,7 @@
import { ReplayArgs, ReplayTool } from "@microsoft/fluid-replay-tool"; import { ReplayArgs, ReplayTool } from "@microsoft/fluid-replay-tool";
import * as fs from "fs"; import * as fs from "fs";
const fileLocation: string = "content"; const fileLocation: string = "content/snapshotTestContent";
export enum Mode { export enum Mode {
Write, // write out files Write, // write out files
@ -113,6 +113,7 @@ export async function processContent(mode: Mode, concurrently = true) {
}); });
promises.push(work); promises.push(work);
} }
return Promise.all(promises); return Promise.all(promises);

Просмотреть файл

@ -14,7 +14,7 @@ describe("Snapshots", function() {
return processContent(Mode.Stress); return processContent(Mode.Stress);
}); });
it("Backward Compat", async () => { // it("Backward Compat", async () => {
return processContent(Mode.Compare); // return processContent(Mode.Compare);
}); // });
}); });