sxy-test-runner 1.0.13 → 1.0.15

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.
Files changed (78) hide show
  1. package/dist/cli/index.js +2 -6
  2. package/dist/cli/init.js +19 -14
  3. package/dist/cli/lib/addBasePath.js +0 -1
  4. package/dist/cli/lib/addBasePath.unitTest.js +3 -1
  5. package/dist/cli/lib/addExports.unitTest.js +4 -1
  6. package/dist/cli/lib/applyConfigDefaults.js +12 -7
  7. package/dist/cli/lib/applyConfigDefaults.unitTest.js +9 -3
  8. package/dist/cli/lib/buildDependencyTree.js +10 -5
  9. package/dist/cli/lib/buildDependencyTree.unitTest.js +3 -1
  10. package/dist/cli/lib/buildDependencyTrees.js +6 -4
  11. package/dist/cli/lib/buildDependencyTrees.unitTest.js +3 -1
  12. package/dist/cli/lib/defaultConfig.test.js +3 -1
  13. package/dist/cli/lib/doUserSetup.js +0 -3
  14. package/dist/cli/lib/doUserSetup.unitTest.js +3 -1
  15. package/dist/cli/lib/doUserTeardown.js +0 -3
  16. package/dist/cli/lib/doUserTeardown.unitTest.js +3 -1
  17. package/dist/cli/lib/findTestFiles.unitTest.js +3 -1
  18. package/dist/cli/lib/getAllowedFlags.js +0 -2
  19. package/dist/cli/lib/getAllowedFlags.unitTest.js +3 -1
  20. package/dist/cli/lib/injectProperties.js +2 -2
  21. package/dist/cli/lib/injectProperties.unitTest.js +9 -2
  22. package/dist/cli/lib/loadConfig.js +2 -2
  23. package/dist/cli/lib/loadConfig.unitTest.js +3 -2
  24. package/dist/cli/lib/loadTestFile.js +17 -15
  25. package/dist/cli/lib/loadTestFile.unitTest.js +8 -3
  26. package/dist/cli/lib/loadTestFileStatic.js +1 -0
  27. package/dist/cli/lib/loadTestFileStatic.unitTest.js +1 -0
  28. package/dist/cli/lib/parseCommandLineArguments.js +1 -9
  29. package/dist/cli/lib/parseCommandLineArguments.unitTest.js +6 -2
  30. package/dist/cli/lib/parseDescribe.js +12 -18
  31. package/dist/cli/lib/parseDescribe.unitTest.js +6 -2
  32. package/dist/cli/lib/processWatchEvent.unitTest.js +9 -1
  33. package/dist/cli/lib/reservedExportKeys.unitTest.js +3 -1
  34. package/dist/cli/lib/runDescribe.js +4 -7
  35. package/dist/cli/lib/runDescribe.old.js +19 -25
  36. package/dist/cli/lib/runDescribe.unitTest.js +120 -2
  37. package/dist/cli/lib/runDescribeRun.js +3 -7
  38. package/dist/cli/lib/runDescribeRun.unitTest.js +125 -4
  39. package/dist/cli/lib/runIt.js +16 -18
  40. package/dist/cli/lib/runIt.unitTest.js +124 -4
  41. package/dist/cli/lib/runTasks.js +2 -7
  42. package/dist/cli/lib/runTasks.unitTest.js +3 -1
  43. package/dist/cli/lib/runTest-old.js +1 -0
  44. package/dist/cli/lib/runTest-old.unitTest.js +1 -0
  45. package/dist/cli/lib/runTest.js +15 -12
  46. package/dist/cli/lib/runTest.unitTest.js +38 -11
  47. package/dist/cli/lib/runTests.js +36 -35
  48. package/dist/cli/lib/runTests.unitTest.js +15 -8
  49. package/dist/cli/lib/showTestLoadingError.js +6 -6
  50. package/dist/cli/lib/showTestLoadingError.unitTest.js +5 -3
  51. package/dist/cli/lib/showTestResult.js +10 -16
  52. package/dist/cli/lib/showTestResult.unitTest.js +26 -17
  53. package/dist/cli/lib/validateConfig.js +0 -5
  54. package/dist/cli/lib/validateConfig.unitTest.js +2 -3
  55. package/dist/cli/lib/watchFiles.unitTest.js +5 -3
  56. package/dist/cli/lib/watchFilesAndRunTests.js +3 -1
  57. package/dist/cli/lib/watchFilesAndRunTests.unitTest.js +18 -15
  58. package/dist/cli/lib/watchFilesAndRunTestsChokidar.js +22 -29
  59. package/dist/cli/lib/watchFilesAndRunTestsChokidar.unitTest.js +19 -17
  60. package/dist/cli/lib/watchFilesAndRunTestsNodeWatch.js +28 -31
  61. package/dist/cli/lib/watchFilesAndRunTestsNodeWatch.unitTest.js +21 -16
  62. package/dist/cli/lib/watchFilesChokidar.js +15 -11
  63. package/dist/cli/lib/watchFilesChokidar.unitTest.js +11 -8
  64. package/dist/cli/lib/watchFilesNodeWatch.js +9 -6
  65. package/dist/cli/lib/watchFilesNodeWatch.unitTest.js +6 -3
  66. package/dist/cli/once.js +0 -6
  67. package/dist/cli/watch.js +18 -14
  68. package/dist/cli/watch.unitTest.js +16 -16
  69. package/dist/describe-old.js +35 -20
  70. package/dist/describe-old.unitTest.js +10 -1
  71. package/dist/describe.js +8 -3
  72. package/dist/describe.unitTest.js +5 -2
  73. package/dist/indexNumberToLetters.js +1 -3
  74. package/dist/output.js +7 -0
  75. package/dist/testsState.js +2 -1
  76. package/package.json +14 -7
  77. package/readme.md +1 -1
  78. package/sxy-loader.config.js +10 -10
@@ -2,7 +2,9 @@ import { applyConfigDefaults } from './applyConfigDefaults.js';
2
2
  import { loadTestFile } from './loadTestFile.js';
3
3
  import { runDescribeRun } from './runDescribeRun.js';
4
4
  import { parseDescribe } from './parseDescribe.js';
5
- const defaultConfig = await applyConfigDefaults({}); // const beforeAfterTestFile = 'unitTesting/runTest/beforeAfter.test.js'
5
+ const defaultConfig = await applyConfigDefaults({});
6
+
7
+ // const beforeAfterTestFile = 'unitTesting/runTest/beforeAfter.test.js'
6
8
  // const beforeAfterTest = loadTestFile(defaultConfig, beforeAfterTestFile)
7
9
 
8
10
  await mochaDescribe('runDescribe() function', async function () {
@@ -10,9 +12,12 @@ await mochaDescribe('runDescribe() function', async function () {
10
12
  const sampleTestFile = 'unitTesting/runTest/1.test.js';
11
13
  const sampleTest = await loadTestFile(defaultConfig, sampleTestFile);
12
14
  const sampleDescribe = sampleTest.describes[0];
13
- const parsedDescribe = await parseDescribe(defaultConfig, sampleDescribe); //console.log('sample describe', sampleDescribe)
15
+ const parsedDescribe = await parseDescribe(defaultConfig, sampleDescribe);
16
+ //console.log('sample describe', sampleDescribe)
17
+ const describeResult = await runDescribeRun(defaultConfig, sampleDescribe, parsedDescribe);
18
+
19
+ //console.log('describe result', describeResult)
14
20
 
15
- const describeResult = await runDescribeRun(defaultConfig, sampleDescribe, parsedDescribe); //console.log('describe result', describeResult)
16
21
  //console.log(testResult.describeResults[0].itResults)
17
22
  //console.log(testResult.describeResults[0].itResultsSummary)
18
23
 
@@ -20,50 +25,72 @@ await mochaDescribe('runDescribe() function', async function () {
20
25
  await describeResult.success.should.equal(true);
21
26
  await describeResult.itResultsSummary.total.should.equal(1);
22
27
  await describeResult.itResultsSummary.passes.should.equal(1);
23
- }); // mochaIt('should return sensible results from a test file without any describes', function() {
28
+ });
29
+
30
+ // mochaIt('should return sensible results from a test file without any describes', function() {
31
+
24
32
  // //const config = applyConfigDefaults({})
33
+
25
34
  // const sampleTestFile = 'unitTesting/sampletests/blank.test.js'
26
35
  // const sampleTest = loadTestFile(defaultConfig, sampleTestFile)
36
+
27
37
  // const testResult = runTest(defaultConfig, sampleTest)
38
+
28
39
  // //console.log(testResult)
29
40
  // //console.log(testResult.describeResults[0].itResults)
30
41
  // //console.log(testResult.describeResults[0].itResultsSummary)
42
+
31
43
  // testResult.should.include.keys([
32
44
  // 'file',
33
45
  // 'success',
34
46
  // 'describeResults',
35
47
  // 'describeResultsSummary'
36
48
  // ])
49
+
37
50
  // chaiExpect(testResult.success).to.be.null
51
+
38
52
  // //testResult.describeResultsSummary.total.should.equal(1)
39
53
  // //testResult.describeResultsSummary.passes.should.equal(1)
40
54
  // //testResult.describeResultsSummary.itsTotal.should.equal(1)
41
55
  // //testResult.describeResultsSummary.itsPasses.should.equal(1)
56
+
42
57
  // })
58
+
43
59
  // mochaIt('should return sensible results from a test file with describes without any its/tests', function() {
60
+
44
61
  // //const config = applyConfigDefaults({})
62
+
45
63
  // const sampleTestFile = 'unitTesting/sampletests/describesWithoutTests.test.js'
46
64
  // const sampleTest = loadTestFile(defaultConfig, sampleTestFile)
65
+
47
66
  // const testResult = runTest(defaultConfig, sampleTest)
67
+
48
68
  // //console.log(testResult)
49
69
  // //console.log(testResult.describeResults[0].itResults)
50
70
  // //console.log(testResult.describeResults[0].itResultsSummary)
71
+
51
72
  // testResult.should.include.keys([
52
73
  // 'file',
53
74
  // 'success',
54
75
  // 'describeResults',
55
76
  // 'describeResultsSummary'
56
77
  // ])
78
+
57
79
  // chaiExpect(testResult.success).to.be.null
80
+
58
81
  // testResult.describeResultsSummary.total.should.equal(0)
59
82
  // testResult.describeResultsSummary.passes.should.equal(0)
60
83
  // testResult.describeResultsSummary.invalid.should.equal(2)
61
84
  // testResult.describeResultsSummary.itsTotal.should.equal(0)
62
85
  // testResult.describeResultsSummary.itsPasses.should.equal(0)
86
+
63
87
  // })
88
+
64
89
  // mochaIt("should run beforeEachFile tasks (before - can't test)", function() {
90
+
65
91
  // let functionHasRun = false
66
92
  // global.beforeEachFileFileHasRun = false
93
+
67
94
  // const ourConfig = {
68
95
  // beforeEachFile: [
69
96
  // function() {
@@ -72,14 +99,21 @@ await mochaDescribe('runDescribe() function', async function () {
72
99
  // 'unitTesting/runTest/beforeEachFile.js'
73
100
  // ]
74
101
  // }
102
+
75
103
  // const config = applyConfigDefaults(ourConfig)
104
+
76
105
  // runTest(config, beforeAfterTest)
106
+
77
107
  // functionHasRun.should.equal(true)
78
108
  // global.beforeEachFileFileHasRun.should.equal(true)
109
+
79
110
  // })
111
+
80
112
  // mochaIt("should run afterEachFile tasks (after - can't test)", function() {
113
+
81
114
  // let functionHasRun = false
82
115
  // global.afterEachFileFileHasRun = false
116
+
83
117
  // const ourConfig = {
84
118
  // afterEachFile: [
85
119
  // function() {
@@ -88,14 +122,21 @@ await mochaDescribe('runDescribe() function', async function () {
88
122
  // 'unitTesting/runTest/afterEachFile.js'
89
123
  // ]
90
124
  // }
125
+
91
126
  // const config = applyConfigDefaults(ourConfig)
127
+
92
128
  // runTest(config, beforeAfterTest)
129
+
93
130
  // functionHasRun.should.equal(true)
94
131
  // global.afterEachFileFileHasRun.should.equal(true)
132
+
95
133
  // })
134
+
96
135
  // mochaIt("should run beforeEachDescribe tasks (before - can't test) each describe block", function() {
136
+
97
137
  // let functionHasRunTimes = 0
98
138
  // global.beforeEachDescribeFileHasRun = false
139
+
99
140
  // const ourConfig = {
100
141
  // beforeEachDescribe: [
101
142
  // function() {
@@ -104,14 +145,21 @@ await mochaDescribe('runDescribe() function', async function () {
104
145
  // 'unitTesting/runTest/beforeEachDescribe.js'
105
146
  // ]
106
147
  // }
148
+
107
149
  // const config = applyConfigDefaults(ourConfig)
150
+
108
151
  // runTest(config, beforeAfterTest)
152
+
109
153
  // functionHasRunTimes.should.equal(2)
110
154
  // global.beforeEachDescribeFileHasRun.should.equal(true)
155
+
111
156
  // })
157
+
112
158
  // mochaIt("should run afterEachDescribe tasks (after - can't test) each describe block", function() {
159
+
113
160
  // let functionHasRunTimes = 0
114
161
  // global.afterEachDescribeFileHasRun = false
162
+
115
163
  // const ourConfig = {
116
164
  // afterEachDescribe: [
117
165
  // function() {
@@ -120,14 +168,21 @@ await mochaDescribe('runDescribe() function', async function () {
120
168
  // 'unitTesting/runTest/afterEachDescribe.js'
121
169
  // ]
122
170
  // }
171
+
123
172
  // const config = applyConfigDefaults(ourConfig)
173
+
124
174
  // runTest(config, beforeAfterTest)
175
+
125
176
  // functionHasRunTimes.should.equal(2)
126
177
  // global.afterEachDescribeFileHasRun.should.equal(true)
178
+
127
179
  // })
180
+
128
181
  // mochaIt("should run beforeEachTest tasks (before - can't test) each test/it block", function() {
182
+
129
183
  // let functionHasRunTimes = 0
130
184
  // global.beforeEachTestbeforeEachFileFileHasRun = false
185
+
131
186
  // const ourConfig = {
132
187
  // beforeEachTest: [
133
188
  // function() {
@@ -136,14 +191,21 @@ await mochaDescribe('runDescribe() function', async function () {
136
191
  // 'unitTesting/runTest/beforeEachTest.js'
137
192
  // ]
138
193
  // }
194
+
139
195
  // const config = applyConfigDefaults(ourConfig)
196
+
140
197
  // runTest(config, beforeAfterTest)
198
+
141
199
  // functionHasRunTimes.should.equal(3)
142
200
  // global.beforeEachTestFileHasRun.should.equal(true)
201
+
143
202
  // })
203
+
144
204
  // mochaIt("should run afterEachTest tasks (after - can't test) each test/it block", function() {
205
+
145
206
  // let functionHasRunTimes = 0
146
207
  // global.afterEachTestFileFileHasRun = false
208
+
147
209
  // const ourConfig = {
148
210
  // afterEachTest: [
149
211
  // function() {
@@ -152,17 +214,26 @@ await mochaDescribe('runDescribe() function', async function () {
152
214
  // 'unitTesting/runTest/afterEachTest.js'
153
215
  // ]
154
216
  // }
217
+
155
218
  // const config = applyConfigDefaults(ourConfig)
219
+
156
220
  // runTest(config, beforeAfterTest)
221
+
157
222
  // functionHasRunTimes.should.equal(3)
158
223
  // global.afterEachTestFileHasRun.should.equal(true)
224
+
159
225
  // })
226
+
160
227
  // // exports provision to test file
228
+
161
229
  // // current beforeEachFile exports aren't provided
162
230
  // // perhaps extend sxy-loader to allow this
231
+
163
232
  // mochaIt("should pass exported/returned data from beforeEachDescribe tasks", function() {
233
+
164
234
  // const testFile = 'unitTesting/runTest/beforeEachDescribe.test.js'
165
235
  // const test = loadTestFile(defaultConfig, testFile)
236
+
166
237
  // const ourConfig = {
167
238
  // beforeEachDescribe: [
168
239
  // function() {
@@ -171,14 +242,21 @@ await mochaDescribe('runDescribe() function', async function () {
171
242
  // 'unitTesting/runTest/beforeEachDescribeExport.js'
172
243
  // ]
173
244
  // }
245
+
174
246
  // const config = applyConfigDefaults(ourConfig)
247
+
175
248
  // runTest(config, test)
249
+
176
250
  // global.functionThing.should.equal('foo')
177
251
  // global.fileThing.should.equal('bar')
252
+
178
253
  // })
254
+
179
255
  // mochaIt("should pass exported/returned data from beforeEachTest tasks", function() {
256
+
180
257
  // const testFile = 'unitTesting/runTest/beforeEachTest.test.js'
181
258
  // const test = loadTestFile(defaultConfig, testFile)
259
+
182
260
  // const ourConfig = {
183
261
  // beforeEachTest: [
184
262
  // function() {
@@ -187,17 +265,26 @@ await mochaDescribe('runDescribe() function', async function () {
187
265
  // 'unitTesting/runTest/beforeEachTestExport.js'
188
266
  // ]
189
267
  // }
268
+
190
269
  // const config = applyConfigDefaults(ourConfig)
270
+
191
271
  // runTest(config, test)
272
+
192
273
  // global.functionThing.should.equal('foo')
193
274
  // global.fileThing.should.equal('bar')
275
+
194
276
  // })
277
+
195
278
  // // exports pass through
279
+
196
280
  // mochaIt("beforeEachFile exports are passed through to afterEachFile", function() {
281
+
197
282
  // // don't try to reload test, fails due to module caching
198
283
  // //const testFile = 'unitTesting/runTest/beforeAfter.test.js'
199
284
  // //const test = loadTestFile(defaultConfig, testFile)
285
+
200
286
  // let exports
287
+
201
288
  // const ourConfig = {
202
289
  // beforeEachFile: [
203
290
  // function() {
@@ -212,16 +299,24 @@ await mochaDescribe('runDescribe() function', async function () {
212
299
  // },
213
300
  // ]
214
301
  // }
302
+
215
303
  // const config = applyConfigDefaults(ourConfig)
304
+
216
305
  // runTest(config, beforeAfterTest)
306
+
217
307
  // exports.functionThing.should.equal('foo')
218
308
  // exports.fileThing.should.equal('bar')
309
+
219
310
  // })
311
+
220
312
  // mochaIt("beforeEachDescribe exports are passed through to afterEachDescribe", function() {
313
+
221
314
  // // don't try to reload test, fails due to module caching
222
315
  // //const testFile = 'unitTesting/runTest/beforeAfter.test.js'
223
316
  // //const test = loadTestFile(defaultConfig, testFile)
317
+
224
318
  // let exports
319
+
225
320
  // const ourConfig = {
226
321
  // beforeEachDescribe: [
227
322
  // function() {
@@ -235,17 +330,26 @@ await mochaDescribe('runDescribe() function', async function () {
235
330
  // },
236
331
  // ]
237
332
  // }
333
+
238
334
  // const config = applyConfigDefaults(ourConfig)
335
+
239
336
  // runTest(config, beforeAfterTest)
337
+
240
338
  // //console.log('exports', exports)
339
+
241
340
  // exports.functionThing.should.equal('foo')
242
341
  // exports.fileThing.should.equal('bar')
342
+
243
343
  // })
344
+
244
345
  // mochaIt("beforeEachTest exports are passed through to afterEachTest", function() {
346
+
245
347
  // // don't try to reload test, fails due to module caching
246
348
  // //const testFile = 'unitTesting/runTest/beforeAfter.test.js'
247
349
  // //const test = loadTestFile(defaultConfig, testFile)
350
+
248
351
  // let exports
352
+
249
353
  // const ourConfig = {
250
354
  // beforeEachTest: [
251
355
  // function() {
@@ -259,35 +363,52 @@ await mochaDescribe('runDescribe() function', async function () {
259
363
  // },
260
364
  // ]
261
365
  // }
366
+
262
367
  // const config = applyConfigDefaults(ourConfig)
368
+
263
369
  // runTest(config, beforeAfterTest)
370
+
264
371
  // //console.log('exports', exports)
372
+
265
373
  // exports.functionThing.should.equal('foo')
266
374
  // exports.fileThing.should.equal('bar')
375
+
267
376
  // })
377
+
268
378
  // mochaIt("we can run code beforeEachTest and afterEachTest from within the test file", function() {
379
+
269
380
  // // don't try to reload test, fails due to module caching
270
381
  // const testFile = 'unitTesting/runTest/internalBeforeAfterEachTest.test.js'
271
382
  // const test = loadTestFile(defaultConfig, testFile)
383
+
272
384
  // const config = applyConfigDefaults({})
385
+
273
386
  // global.internalBeforeEachTestRanNTimes = 0
274
387
  // global.internalAfterEachTestRanNTimes = 0
275
388
  // runTest(config, test)
389
+
276
390
  // global.internalBeforeAfterEachTest_test1Valid.should.equal(true)
277
391
  // global.internalBeforeAfterEachTest_test2Valid.should.equal(true)
278
392
  // global.internalBeforeAfterEachTest_test3Valid.should.equal(true)
279
393
  // global.internalBeforeEachTestRanNTimes.should.equal(3)
280
394
  // global.internalAfterEachTestRanNTimes.should.equal(3)
395
+
281
396
  // })
397
+
282
398
  // mochaIt("we can run code afterDescribe from within descibe in the test file", function() {
399
+
283
400
  // // don't try to reload test, fails due to module caching
284
401
  // const testFile = 'unitTesting/runTest/internalAfterDescribeTest.test.js'
285
402
  // const test = loadTestFile(defaultConfig, testFile)
403
+
286
404
  // const config = applyConfigDefaults({})
405
+
287
406
  // global.internalAfterDescribeRanNTimes = 0
288
407
  // runTest(config, test)
408
+
289
409
  // //global.internalAfterDescribe_test1Valid.should.equal(true)
290
410
  // //global.internalAfterDescribe_test2Valid.should.equal(true)
291
411
  // global.internalAfterDescribeRanNTimes.should.equal(2)
412
+
292
413
  // })
293
414
  });
@@ -3,36 +3,33 @@ import { runTasks } from './runTasks.js';
3
3
  import { addExports } from './addExports.js';
4
4
  export async function runIt(config, it, beforeEachTestFunc, afterEachTestFunc) {
5
5
  return await timeProfileAsync(`run it ${it.should}`, async () => {
6
- const capturingConsoleLog = config.execution.tests === 'sequential'; //// capture console.log output
6
+ const capturingConsoleLog = config.execution.tests === 'sequential';
7
7
 
8
+ //// capture console.log output
8
9
  let previousConsoleLog;
9
10
  const logs = [];
10
-
11
11
  if (capturingConsoleLog) {
12
12
  previousConsoleLog = console.log; // eslint-disable-line no-console
13
-
14
13
  console.log = async (...texts) => await logs.push(texts); // eslint-disable-line no-console
14
+ }
15
+ ////
15
16
 
16
- } ////
17
17
  // run before test/it
18
-
19
-
20
18
  const testExports = {};
21
19
  await configBeforeEachTest(config, testExports);
22
-
23
20
  if (typeof beforeEachTestFunc === 'function') {
24
21
  const funcExports = await beforeEachTestFunc();
25
22
  await addExports(testExports, funcExports);
26
23
  }
27
-
28
24
  const testParcel = {};
29
- await addExports(testParcel, testExports); //const thisItCounter = itCounter++ // assign THEN increment
30
- //// run the it
25
+ await addExports(testParcel, testExports);
31
26
 
27
+ //const thisItCounter = itCounter++ // assign THEN increment
28
+
29
+ //// run the it
32
30
  let success = null;
33
31
  let error;
34
32
  const startTime = await new Date().getTime();
35
-
36
33
  try {
37
34
  await it.test(testParcel);
38
35
  success = true;
@@ -40,7 +37,6 @@ export async function runIt(config, it, beforeEachTestFunc, afterEachTestFunc) {
40
37
  success = false;
41
38
  error = e;
42
39
  }
43
-
44
40
  const time = (await new Date().getTime()) - startTime;
45
41
  const itResult = {
46
42
  //counter: thisItCounter,
@@ -50,17 +46,20 @@ export async function runIt(config, it, beforeEachTestFunc, afterEachTestFunc) {
50
46
  time,
51
47
  error,
52
48
  logs
53
- }; // run after test/it
49
+ };
54
50
 
51
+ // run after test/it
55
52
  if (typeof afterEachTestFunc === 'function') await afterEachTestFunc();
56
- await configAfterEachTest(config, testExports); //// restore previous console.log
53
+ await configAfterEachTest(config, testExports);
57
54
 
55
+ //// restore previous console.log
58
56
  if (capturingConsoleLog) {
59
57
  console.log = previousConsoleLog; // eslint-disable-line no-console
60
- } ////
61
-
58
+ }
59
+ ////
62
60
 
63
- return itResult; //testResults.push(testResult)
61
+ return itResult;
62
+ //testResults.push(testResult)
64
63
  //testsState.testResults.push(testResult)
65
64
  });
66
65
  }
@@ -71,7 +70,6 @@ async function configBeforeEachTest(config, exports) {
71
70
  await addExports(exports, theExports);
72
71
  }
73
72
  }
74
-
75
73
  async function configAfterEachTest(config, exports) {
76
74
  if (config.afterEachTest) {
77
75
  await runTasks(config.afterEachTest, exports);