@carbonorm/carbonreact 3.3.4 → 3.3.6
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 +3 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/hoc/setupTests.tsx +7 -5
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
|
-
|
|
4287
|
-
|
|
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 + ')', validSQL, expect.getState());
|
|
4289
4288
|
// restore `window.location` to the original `jsdom`
|
|
4290
4289
|
// `Location` object
|
|
4291
4290
|
window.location = originalWindowLocation;
|
|
4292
|
-
fs.writeFileSync(validSqlFile(),
|
|
4291
|
+
fs.writeFileSync(validSqlFile(), jsonSQL);
|
|
4293
4292
|
}, 65000);
|
|
4294
4293
|
}
|
|
4295
4294
|
|