@carbonorm/carbonreact 3.3.4 → 3.3.5

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.
package/dist/index.cjs.js CHANGED
@@ -4283,13 +4283,12 @@ function setupTests ({ sqlDirectory = './logs/rest/', logsDirectory = './logs/te
4283
4283
  await react$1.waitFor(async () => {
4284
4284
  expect(carbonnode.checkAllRequestsComplete()).toEqual(true);
4285
4285
  }, { timeout: 3000, interval: 1000 });
4286
- // this must be a dynamic import to avoid loading dependencies out of order
4287
- // await waitForTrailingRequests({testPassed: true, timeout: 12000})
4288
- console.log('After each Test (' + expect.getState().currentTestName + ')', expect.getState());
4286
+ const jsonSQL = JSON.stringify(validSQL, undefined, 2) ?? '';
4287
+ console.log('After each Test (' + expect.getState().currentTestName + ') + (' + jsonSQL + ')', expect.getState());
4289
4288
  // restore `window.location` to the original `jsdom`
4290
4289
  // `Location` object
4291
4290
  window.location = originalWindowLocation;
4292
- fs.writeFileSync(validSqlFile(), JSON.stringify(validSQL, undefined, 2) ?? '');
4291
+ fs.writeFileSync(validSqlFile(), jsonSQL);
4293
4292
  }, 65000);
4294
4293
  }
4295
4294