Flaky test (#1405)

Co-authored-by: matt korwel <matt.korwel@gmail.com>
Co-authored-by: Scott Densmore <scottdensmore@mac.com>
This commit is contained in:
Keith Ballinger
2025-06-25 21:45:39 -07:00
committed by GitHub
parent dbe217828d
commit 891116a6c2
2 changed files with 6 additions and 0 deletions

View File

@@ -42,6 +42,11 @@ export class TestRig {
mkdirSync(join(this.testDir, dir));
}
sync() {
// ensure file system is done before spawning
execSync('sync', { cwd: this.testDir });
}
run(prompt, ...args) {
const output = execSync(
`node ${this.bundlePath} --yolo --prompt "${prompt}" ${args.join(' ')}`,