@japa/runner 3.0.2 → 3.0.3

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.
@@ -18,7 +18,12 @@ export const syncReporter = {
18
18
  emitter.on('runner:end', function () {
19
19
  const summary = r.getSummary();
20
20
  if (summary.hasError) {
21
- throw summary.failureTree[0].children[0].errors[0].error;
21
+ if (summary.failureTree[0].errors.length) {
22
+ throw summary.failureTree[0].errors[0].error;
23
+ }
24
+ if (summary.failureTree[0].children[0].errors.length) {
25
+ throw summary.failureTree[0].children[0].errors[0].error;
26
+ }
22
27
  }
23
28
  });
24
29
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@japa/runner",
3
3
  "description": "Runner for Japa testing framework",
4
- "version": "3.0.2",
4
+ "version": "3.0.3",
5
5
  "engines": {
6
6
  "node": ">=18.16.0"
7
7
  },
@@ -43,11 +43,11 @@
43
43
  "@commitlint/cli": "^17.7.2",
44
44
  "@commitlint/config-conventional": "^17.7.0",
45
45
  "@swc/core": "1.3.82",
46
- "@types/chai": "^4.3.8",
47
- "@types/chai-subset": "^1.3.3",
46
+ "@types/chai": "^4.3.9",
47
+ "@types/chai-subset": "^1.3.4",
48
48
  "@types/find-cache-dir": "^5.0.0",
49
- "@types/ms": "^0.7.32",
50
- "@types/node": "^20.8.6",
49
+ "@types/ms": "^0.7.33",
50
+ "@types/node": "^20.8.7",
51
51
  "c8": "^8.0.1",
52
52
  "chai": "^4.3.10",
53
53
  "chai-subset": "^1.6.0",
@@ -63,7 +63,7 @@
63
63
  "typescript": "^5.2.2"
64
64
  },
65
65
  "dependencies": {
66
- "@japa/core": "^8.0.2",
66
+ "@japa/core": "^8.1.0",
67
67
  "@japa/errors-printer": "^3.0.0",
68
68
  "@poppinss/colors": "^4.1.0",
69
69
  "@poppinss/hooks": "^7.2.0",