summaryrefslogtreecommitdiff
path: root/integration-tests/test-helper.js
diff options
context:
space:
mode:
authorKeith Ballinger <[email protected]>2025-06-25 21:45:39 -0700
committerGitHub <[email protected]>2025-06-26 04:45:39 +0000
commit891116a6c2ab0a35ccabba9cbc70b7d3aea3587e (patch)
tree4a8afaebc2fa2bdbeb638e99c396c6f69a497bf3 /integration-tests/test-helper.js
parentdbe217828d71794e85e7b03592639be0b81463cb (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.js5
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(' ')}`,