@dev-blinq/cucumber_client 1.0.1296-dev → 1.0.1298-dev

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.
@@ -524,7 +524,7 @@ class StepsDefinitions {
524
524
  // );
525
525
  };
526
526
 
527
- executeStepRemote = async ({ feature_file_path, scenario, tempFolderPath, stepText }, options) => {
527
+ executeStepRemote = async ({ feature_file_path, scenario, tempFolderPath, stepText, onCommandResult }, options) => {
528
528
  const { skipAfter = true, skipBefore = true } = options || {};
529
529
  const environment = {
530
530
  ...process.env,
@@ -558,7 +558,9 @@ class StepsDefinitions {
558
558
  }
559
559
  if (skipBefore) {
560
560
  // ignore beforeAll/before hooks
561
- support.beforeTestCaseHookDefinitions = [];
561
+ support.beforeTestCaseHookDefinitions = support.beforeTestCaseHookDefinitions.filter((hook) => {
562
+ return hook.uri.endsWith("utils.mjs")
563
+ });
562
564
  support.beforeTestRunHookDefinitions = [];
563
565
  }
564
566
 
@@ -832,7 +832,7 @@ export class BVTRecorder {
832
832
  async saveScenario({ scenario, featureName, override, isSingleStep }) {
833
833
  await updateStepDefinitions({ scenario, featureName, projectDir: this.projectDir }); // updates mjs files
834
834
  if (!isSingleStep) await updateFeatureFile({ featureName, scenario, override, projectDir: this.projectDir }); // updates gherkin files
835
- await this.cleanup();
835
+ await this.cleanup({ tags: scenario.tags });
836
836
  }
837
837
  async getImplementedSteps() {
838
838
  const stepsAndScenarios = await getImplementedSteps(this.projectDir);
@@ -945,9 +945,9 @@ export class BVTRecorder {
945
945
  }
946
946
  }
947
947
 
948
- async discardTestData() {
948
+ async discardTestData({ tags }) {
949
949
  resetTestData(this.envName, this.world);
950
- await this.cleanup();
950
+ await this.cleanup({ tags });
951
951
  }
952
952
  async addToTestData(obj) {
953
953
  if (!existsSync(_getDataFile(this.world, this.bvtContext, this.web))) {
@@ -1053,7 +1053,7 @@ export class BVTRecorder {
1053
1053
  }
1054
1054
  return result;
1055
1055
  }
1056
- async cleanup() {
1056
+ async cleanup({ tags }) {
1057
1057
  const noopStep = {
1058
1058
  text: "Noop",
1059
1059
  isImplemented: true,
@@ -1067,6 +1067,7 @@ export class BVTRecorder {
1067
1067
  {
1068
1068
  step: noopStep,
1069
1069
  parametersMap: {},
1070
+ tags: tags || [],
1070
1071
  },
1071
1072
  {
1072
1073
  skipAfter: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-blinq/cucumber_client",
3
- "version": "1.0.1296-dev",
3
+ "version": "1.0.1298-dev",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -32,7 +32,7 @@
32
32
  "@cucumber/tag-expressions": "^6.1.1",
33
33
  "@dev-blinq/cucumber-js": "1.0.176-dev",
34
34
  "@faker-js/faker": "^8.1.0",
35
- "automation_model": "1.0.766-dev",
35
+ "automation_model": "1.0.767-dev",
36
36
  "axios": "^1.7.4",
37
37
  "chokidar": "^3.6.0",
38
38
  "create-require": "^1.1.1",