summaryrefslogtreecommitdiff
path: root/integration-tests/test-helper.js
diff options
context:
space:
mode:
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(' ')}`,