@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carbonorm/carbonreact",
3
- "version": "3.3.4",
3
+ "version": "3.3.5",
4
4
  "browser": "dist/index.umd.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "main": "dist/index.cjs.js",
@@ -50,16 +50,15 @@ export default function ({sqlDirectory = './logs/rest/', logsDirectory = './logs
50
50
 
51
51
  }, {timeout: 3000, interval: 1000});
52
52
 
53
- // this must be a dynamic import to avoid loading dependencies out of order
54
- // await waitForTrailingRequests({testPassed: true, timeout: 12000})
53
+ const jsonSQL = JSON.stringify(validSQL, undefined, 2) ?? '';
55
54
 
56
- console.log('After each Test (' + expect.getState().currentTestName + ')', expect.getState());
55
+ console.log('After each Test (' + expect.getState().currentTestName + ') + (' +jsonSQL+ ')', expect.getState());
57
56
 
58
57
  // restore `window.location` to the original `jsdom`
59
58
  // `Location` object
60
59
  window.location = originalWindowLocation
61
60
 
62
- fs.writeFileSync(validSqlFile(), JSON.stringify(validSQL, undefined, 2) ?? '');
61
+ fs.writeFileSync(validSqlFile(), jsonSQL);
63
62
 
64
63
  }, 65000)
65
64