@get-snappy/cli 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -853,10 +853,10 @@ async function runSnapshotRun(config, deps) {
853
853
  throw new Error(`Test command failed with exit code ${testExitCode}`);
854
854
  }
855
855
  console.log('Draining browser and upload pools...');
856
- await withTimeout(Promise.all([
857
- ...Array.from(browserPools.values()).map((pool)=>pool.drain()),
858
- uploadPool.drain()
859
- ]), drainTimeoutMs);
856
+ await withTimeout((async ()=>{
857
+ await Promise.all(Array.from(browserPools.values()).map((pool)=>pool.drain()));
858
+ await uploadPool.drain();
859
+ })(), drainTimeoutMs);
860
860
  console.log('All pools drained successfully');
861
861
  if (config.parallel) console.log('Parallel mode: skipping sendComplete (finalizeBuild will handle it)');
862
862
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@get-snappy/cli",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "CLI for get-snappy visual regression testing",
5
5
  "type": "module",
6
6
  "bin": {