diff options
| author | Keith Ballinger <[email protected]> | 2025-06-25 21:45:39 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-26 04:45:39 +0000 |
| commit | 891116a6c2ab0a35ccabba9cbc70b7d3aea3587e (patch) | |
| tree | 4a8afaebc2fa2bdbeb638e99c396c6f69a497bf3 /integration-tests/test-helper.js | |
| parent | dbe217828d71794e85e7b03592639be0b81463cb (diff) | |
Flaky test (#1405)
Co-authored-by: matt korwel <[email protected]>
Co-authored-by: Scott Densmore <[email protected]>
Diffstat (limited to 'integration-tests/test-helper.js')
| -rw-r--r-- | integration-tests/test-helper.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/integration-tests/test-helper.js b/integration-tests/test-helper.js index acc0035a..eb598bd9 100644 --- a/integration-tests/test-helper.js +++ b/integration-tests/test-helper.js @@ -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(' ')}`, |
