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