sxy-test-runner 1.3.6 → 1.3.8
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/describe.js +4 -0
- package/package.json +2 -2
package/dist/describe.js
CHANGED
|
@@ -14,6 +14,10 @@ const {
|
|
|
14
14
|
//console.log('chalk', chalk)
|
|
15
15
|
|
|
16
16
|
export async function describe(theThing, tests) {
|
|
17
|
+
if (!global.__sxy_test_runner__) {
|
|
18
|
+
throw new Error(`sxy-test-runner describe() was called, but the test framework has not initialized.` + ` This might be because you have run a test file directly` + `, instead of running 'pnpm sxy-test-runner'`);
|
|
19
|
+
}
|
|
20
|
+
|
|
17
21
|
//const thisDescribeCounter = global.testState.describeCounter++ // ++: assign the value, THEN increment
|
|
18
22
|
const thisDescribeCounter = global.__sxy_test_runner__.describeCounter;
|
|
19
23
|
global.__sxy_test_runner__.describeCounter++;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sxy-test-runner",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://github.com/RobertSandiford/sxy-test-runner",
|
|
6
6
|
"repository": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"sxy-helpers": "^1.0.0",
|
|
45
45
|
"sxy-lib": "^1.0.12",
|
|
46
46
|
"sxy-lib-object-copy": "^1.0.5",
|
|
47
|
-
"sxy-loader": "^3.0.
|
|
47
|
+
"sxy-loader": "^3.0.35",
|
|
48
48
|
"sxy-standard": "^1.0.12",
|
|
49
49
|
"sxy-standard-object-copy": "^1.0.5"
|
|
50
50
|
},
|