@g_package/jest-cucumber-fusion 3.0.0 → 3.0.1

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/index.cjs CHANGED
@@ -9324,14 +9324,21 @@ var parseFeature = (featureText) => {
9324
9324
  try {
9325
9325
  return { document: parser.parse(featureText), ids };
9326
9326
  } catch (parseFailure) {
9327
- throw new Error(`Error parsing feature Gherkin: ${parseFailure.message}`);
9327
+ throw new Error(`Error parsing feature Gherkin: ${parseFailure.message}`, {
9328
+ cause: parseFailure
9329
+ });
9328
9330
  }
9329
9331
  };
9330
9332
  var compilePickles = (document, absoluteFeatureFilePath, ids) => {
9331
9333
  try {
9332
9334
  return compile(document, absoluteFeatureFilePath, ids);
9333
9335
  } catch (compileFailure) {
9334
- throw new Error(`Error parsing feature Gherkin: ${compileFailure.message}`);
9336
+ throw new Error(
9337
+ `Error parsing feature Gherkin: ${compileFailure.message}`,
9338
+ {
9339
+ cause: compileFailure
9340
+ }
9341
+ );
9335
9342
  }
9336
9343
  };
9337
9344
  var eachChild = (children, visit) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@g_package/jest-cucumber-fusion",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Write cucumber test as part of a jest run (including coverage)",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -52,13 +52,13 @@
52
52
  "@secretlint/secretlint-rule-preset-recommend": "^13.0.7",
53
53
  "cz-conventional-changelog": "^3.3.0",
54
54
  "esbuild": "0.28.2",
55
- "eslint": "^9.39.5",
55
+ "eslint": "^10.12.0",
56
56
  "eslint-plugin-jest": "^29.16.6",
57
57
  "fast-check": "^4.10.2",
58
58
  "globals": "^17.13.0",
59
59
  "husky": "^9.1.7",
60
60
  "jest": "^30.4.2",
61
- "lint-staged": "^16.4.0",
61
+ "lint-staged": "^17.6.0",
62
62
  "prettier": "3.9.9",
63
63
  "secretlint": "^13.0.7",
64
64
  "semantic-release": "^25.0.5",
@@ -95,7 +95,9 @@ const parseFeature = (featureText) => {
95
95
  try {
96
96
  return { document: parser.parse(featureText), ids };
97
97
  } catch (parseFailure) {
98
- throw new Error(`Error parsing feature Gherkin: ${parseFailure.message}`);
98
+ throw new Error(`Error parsing feature Gherkin: ${parseFailure.message}`, {
99
+ cause: parseFailure,
100
+ });
99
101
  }
100
102
  };
101
103
 
@@ -103,7 +105,12 @@ const compilePickles = (document, absoluteFeatureFilePath, ids) => {
103
105
  try {
104
106
  return gherkin.compile(document, absoluteFeatureFilePath, ids);
105
107
  } catch (compileFailure) {
106
- throw new Error(`Error parsing feature Gherkin: ${compileFailure.message}`);
108
+ throw new Error(
109
+ `Error parsing feature Gherkin: ${compileFailure.message}`,
110
+ {
111
+ cause: compileFailure,
112
+ },
113
+ );
107
114
  }
108
115
  };
109
116