MCPcopy Create free account
hub / github.com/cursorless-dev/cursorless / finishTestCase

Method finishTestCase

src/testUtil/TestCaseRecorder.ts:81–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79 }
80
81 async finishTestCase(): Promise<void> {
82 const outPath = this.calculateFilePath(this.testCase!);
83 const fixture = this.testCase!.toYaml();
84 await this.writeToFile(outPath, fixture);
85 this.testCase = null;
86 }
87
88 private async writeToFile(outPath: string, fixture: string) {
89 fs.writeFileSync(outPath, fixture);

Callers 2

preCommandHookMethod · 0.95
postCommandHookMethod · 0.95

Calls 3

calculateFilePathMethod · 0.95
writeToFileMethod · 0.95
toYamlMethod · 0.80

Tested by

no test coverage detected