@carbonorm/carbonreact 3.3.5 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carbonorm/carbonreact",
3
- "version": "3.3.5",
3
+ "version": "3.3.6",
4
4
  "browser": "dist/index.umd.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "main": "dist/index.cjs.js",
@@ -4,7 +4,10 @@ import {checkAllRequestsComplete, isVerbose} from "@carbonorm/carbonnode";
4
4
  import {waitFor} from "@testing-library/react";
5
5
  import {validSQL} from "./validSQL";
6
6
 
7
- export default function ({sqlDirectory = './logs/rest/', logsDirectory = './logs/tests/'}: { sqlDirectory?: string, logsDirectory?: string } = {}) {
7
+ export default function ({sqlDirectory = './logs/rest/', logsDirectory = './logs/tests/'}: {
8
+ sqlDirectory?: string,
9
+ logsDirectory?: string
10
+ } = {}) {
8
11
 
9
12
  const originalWindowLocation = window.location
10
13
 
@@ -52,7 +55,7 @@ export default function ({sqlDirectory = './logs/rest/', logsDirectory = './logs
52
55
 
53
56
  const jsonSQL = JSON.stringify(validSQL, undefined, 2) ?? '';
54
57
 
55
- console.log('After each Test (' + expect.getState().currentTestName + ') + (' +jsonSQL+ ')', expect.getState());
58
+ console.log('After each Test (' + expect.getState().currentTestName + ')', validSQL, expect.getState());
56
59
 
57
60
  // restore `window.location` to the original `jsdom`
58
61
  // `Location` object