Commit 497db7e

Anton Golub <antongolub@antongolub.com>
2023-08-15 12:21:10
test(cli): fix flaky test (#662)
1 parent 483cc88
Changed files (1)
test/cli.test.js
@@ -191,8 +191,10 @@ test('argv works with zx and node', async () => {
     `global {"_":["bar"]}\nimported {"_":["bar"]}\n`
   )
   assert.is(
-    (await $`node build/cli.js --eval 'console.log(argv._)' baz`).toString(),
-    `[ 'baz' ]\n`
+    (
+      await $`node build/cli.js --eval 'console.log(argv._.join(''))' baz`
+    ).toString(),
+    `baz\n`
   )
 })