@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.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
|
-
|
|
4285
|
-
|
|
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 + ')', validSQL, expect.getState());
|
|
4287
4286
|
// restore `window.location` to the original `jsdom`
|
|
4288
4287
|
// `Location` object
|
|
4289
4288
|
window.location = originalWindowLocation;
|
|
4290
|
-
fs.writeFileSync(validSqlFile(),
|
|
4289
|
+
fs.writeFileSync(validSqlFile(), jsonSQL);
|
|
4291
4290
|
}, 65000);
|
|
4292
4291
|
}
|
|
4293
4292
|
|