testcafe-reporter-testit 3.7.9 → 4.0.0

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/lib/reporter.d.ts CHANGED
@@ -5,6 +5,7 @@ export default class TmsReporter {
5
5
  private readonly additions;
6
6
  private testCache;
7
7
  private loadTestPromises;
8
+ private readonly setupPromise;
8
9
  private groupMetadata;
9
10
  private groupPath;
10
11
  constructor();
package/lib/reporter.js CHANGED
@@ -13,6 +13,7 @@ class TmsReporter {
13
13
  const config = new testit_js_commons_1.ConfigComposer().compose();
14
14
  this.strategy = testit_js_commons_1.StrategyFactory.create(config);
15
15
  this.additions = new testit_js_commons_1.Additions(config);
16
+ this.setupPromise = this.strategy.setup();
16
17
  }
17
18
  onFixtureBegin(name, path, meta) {
18
19
  this.groupMetadata = new metadata_1.default(meta);
@@ -25,7 +26,9 @@ class TmsReporter {
25
26
  await this.loadTestPromises.push(this.loadTest(name, testRunInfo, meta, testData));
26
27
  }
27
28
  async onEnd() {
29
+ await this.setupPromise;
28
30
  await Promise.all(this.loadTestPromises);
31
+ await this.strategy.teardown();
29
32
  }
30
33
  async loadTest(name, testRunInfo, meta, testData) {
31
34
  const autotestData = new metadata_1.default(meta, this.groupPath, name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testcafe-reporter-testit",
3
- "version": "3.7.9",
3
+ "version": "4.0.0",
4
4
  "description": "TestCafe adapter for Test IT",
5
5
  "keywords": [],
6
6
  "author": {
@@ -43,6 +43,6 @@
43
43
  "testcafe": "^3.0.1"
44
44
  },
45
45
  "dependencies": {
46
- "testit-js-commons": "3.7.9"
46
+ "testit-js-commons": "4.0.0"
47
47
  }
48
48
  }