This is an automated email from the ASF dual-hosted git repository.

porcelli pushed a commit to branch 0.26.2
in repository 
https://gitbox.apache.org/repos/asf/incubator-kie-tools-temporary-rnd-do-not-use.git

commit 0bec9b5667537c0ff60fe96aee279c01359f2f39
Author: Zbyněk Drápela <[email protected]>
AuthorDate: Tue May 2 20:00:27 2023 +0200

    [0.26.2] KOGITO-8959: Take screenshots of failed VSCode extension 
integration tests (#1594)
    
    Co-authored-by: Lubo Terifaj <[email protected]>
---
 .../it-tests/extension-editors-bpmn.test.ts        |  2 +
 .../it-tests/extension-editors-dmn.test.ts         |  2 +
 .../it-tests/extension-editors-scesim.test.ts      |  2 +
 .../it-tests/extension-editors-smoke.test.ts       |  2 +
 .../it-tests/helpers/VSCodeTestHelper.ts           | 32 ++++++++++
 .../package.json                                   |  4 ++
 .../it-tests/helpers/VSCodeTestHelper.ts           | 35 ++++++++++-
 ...orkflow-editor-extension-autocompletion.test.ts |  2 +
 ...verless-workflow-editor-extension-smoke.test.ts |  2 +
 ...kflow-editor-extension-syntax-highlight.test.ts |  2 +
 .../package.json                                   |  4 ++
 .../it-tests/helpers/VSCodeTestHelper.ts           | 32 ++++++++++
 .../it-tests/yard-editor.test.ts                   |  2 +
 packages/vscode-extension-yard-editor/package.json |  4 ++
 pnpm-lock.yaml                                     | 72 ++++++++++++++++++++--
 15 files changed, 193 insertions(+), 6 deletions(-)

diff --git 
a/packages/vscode-extension-pack-kogito-kie-editors/it-tests/extension-editors-bpmn.test.ts
 
b/packages/vscode-extension-pack-kogito-kie-editors/it-tests/extension-editors-bpmn.test.ts
index e2002f90db..c5cc4b722b 100644
--- 
a/packages/vscode-extension-pack-kogito-kie-editors/it-tests/extension-editors-bpmn.test.ts
+++ 
b/packages/vscode-extension-pack-kogito-kie-editors/it-tests/extension-editors-bpmn.test.ts
@@ -42,6 +42,7 @@ import ImplementationExecutionHelper from 
"./helpers/bpmn/ImplementationExecutio
 
 describe("KIE Editors Integration Test Suite - BPMN Editor", () => {
   const RESOURCES: string = path.resolve("it-tests-tmp", "resources");
+  const DIST_IT_TESTS_FOLDER: string = path.resolve("dist-it-tests");
   const MULTIPLE_INSTANCE_BPMN: string = "MultipleInstanceSubprocess.bpmn";
   const USER_TASK_BPMN: string = "UserTask.bpmn";
   const WID_BPMN: string = "process-wid.bpmn";
@@ -64,6 +65,7 @@ describe("KIE Editors Integration Test Suite - BPMN Editor", 
() => {
 
   afterEach(async function () {
     this.timeout(30000);
+    await testHelper.takeScreenshotOnTestFailure(this, DIST_IT_TESTS_FOLDER);
     await testHelper.closeAllEditors();
     await testHelper.closeAllNotifications();
     await webview.switchBack();
diff --git 
a/packages/vscode-extension-pack-kogito-kie-editors/it-tests/extension-editors-dmn.test.ts
 
b/packages/vscode-extension-pack-kogito-kie-editors/it-tests/extension-editors-dmn.test.ts
index fc1ae9f18a..933ba1643b 100644
--- 
a/packages/vscode-extension-pack-kogito-kie-editors/it-tests/extension-editors-dmn.test.ts
+++ 
b/packages/vscode-extension-pack-kogito-kie-editors/it-tests/extension-editors-dmn.test.ts
@@ -32,6 +32,7 @@ import DecisionNavigatorHelper from 
"./helpers/dmn/DecisionNavigatorHelper";
  */
 describe("KIE Editors Integration Test Suite - DMN Editor", () => {
   const RESOURCES: string = path.resolve("it-tests-tmp", "resources");
+  const DIST_IT_TESTS_FOLDER: string = path.resolve("dist-it-tests");
   const DEMO_DMN: string = "demo.dmn";
   const DEMO_EXPRESSION_DMN: string = "demo-expression.dmn";
   const REUSABLE_DMN: string = "reusable-model.dmn";
@@ -53,6 +54,7 @@ describe("KIE Editors Integration Test Suite - DMN Editor", 
() => {
 
   afterEach(async function () {
     this.timeout(15000);
+    await testHelper.takeScreenshotOnTestFailure(this, DIST_IT_TESTS_FOLDER);
     await testHelper.closeAllEditors();
     await testHelper.closeAllNotifications();
     await webview.switchBack();
diff --git 
a/packages/vscode-extension-pack-kogito-kie-editors/it-tests/extension-editors-scesim.test.ts
 
b/packages/vscode-extension-pack-kogito-kie-editors/it-tests/extension-editors-scesim.test.ts
index 791957247c..3e4d5818d4 100644
--- 
a/packages/vscode-extension-pack-kogito-kie-editors/it-tests/extension-editors-scesim.test.ts
+++ 
b/packages/vscode-extension-pack-kogito-kie-editors/it-tests/extension-editors-scesim.test.ts
@@ -31,6 +31,7 @@ import { assert } from "chai";
  */
 describe("KIE Editors Integration Test Suite - SCESIM Editor", () => {
   const RESOURCES: string = path.resolve("it-tests-tmp", "resources");
+  const DIST_IT_TESTS_FOLDER: string = path.resolve("dist-it-tests");
   const DEMO_DMN: string = "demo.dmn";
   const DEMO_DMN_SCESIM: string = "demo-dmn.scesim";
 
@@ -51,6 +52,7 @@ describe("KIE Editors Integration Test Suite - SCESIM 
Editor", () => {
 
   afterEach(async function () {
     this.timeout(15000);
+    await testHelper.takeScreenshotOnTestFailure(this, DIST_IT_TESTS_FOLDER);
     await testHelper.closeAllEditors();
     await testHelper.closeAllNotifications();
     await webview.switchBack();
diff --git 
a/packages/vscode-extension-pack-kogito-kie-editors/it-tests/extension-editors-smoke.test.ts
 
b/packages/vscode-extension-pack-kogito-kie-editors/it-tests/extension-editors-smoke.test.ts
index 1e244fe19d..4e3e9ba7df 100644
--- 
a/packages/vscode-extension-pack-kogito-kie-editors/it-tests/extension-editors-smoke.test.ts
+++ 
b/packages/vscode-extension-pack-kogito-kie-editors/it-tests/extension-editors-smoke.test.ts
@@ -29,6 +29,7 @@ import PmmlEditorTestHelper from 
"./helpers/PmmlEditorTestHelper";
  */
 describe("KIE Editors Integration Test Suite - Smoke tests", () => {
   const RESOURCES: string = path.resolve("it-tests-tmp", "resources");
+  const DIST_IT_TESTS_FOLDER: string = path.resolve("dist-it-tests");
   const DEMO_BPMN: string = "demo.bpmn";
   const DEMO_DMN: string = "demo.dmn";
   const DEMO_SCESIM: string = "demo.scesim";
@@ -51,6 +52,7 @@ describe("KIE Editors Integration Test Suite - Smoke tests", 
() => {
 
   afterEach(async function () {
     this.timeout(15000);
+    await testHelper.takeScreenshotOnTestFailure(this, DIST_IT_TESTS_FOLDER);
     await testHelper.closeAllEditors();
     await testHelper.closeAllNotifications();
     await webview.switchBack();
diff --git 
a/packages/vscode-extension-pack-kogito-kie-editors/it-tests/helpers/VSCodeTestHelper.ts
 
b/packages/vscode-extension-pack-kogito-kie-editors/it-tests/helpers/VSCodeTestHelper.ts
index a218367f51..051538c975 100644
--- 
a/packages/vscode-extension-pack-kogito-kie-editors/it-tests/helpers/VSCodeTestHelper.ts
+++ 
b/packages/vscode-extension-pack-kogito-kie-editors/it-tests/helpers/VSCodeTestHelper.ts
@@ -15,6 +15,9 @@
  */
 
 import { assert } from "chai";
+import * as path from "path";
+import * as fs from "fs-extra";
+import { sanitize } from "sanitize-filename-ts";
 import {
   ActivityBar,
   By,
@@ -264,6 +267,35 @@ export default class VSCodeTestHelper {
     );
     await driver.switchTo().frame(await 
driver.findElement(By.id("active-frame")));
   };
+
+  /**
+   * Creates screenshot of current VSCode window and saves it to given path.
+   *
+   * @param name screenshot file name without extension
+   * @param dirPath path to a folder to store screenshots (will be created if 
doesn't exist)
+   */
+  private takeScreenshotAndSave = async (name: string, dirPath: string): 
Promise<void> => {
+    const data = await this.driver.takeScreenshot();
+    fs.mkdirpSync(dirPath);
+    fs.writeFileSync(path.join(dirPath, `${sanitize(name)}.png`), data, 
"base64");
+  };
+
+  /**
+   * Takes a screenshot if the current test fails and saves it in the 
specified directory.
+   *
+   * @param {Mocha.Context} testMochaContext The current Mocha test context.
+   * @param {string} parentScreenshotFolder The parent directory where the 
screenshot will be saved.
+   */
+  public takeScreenshotOnTestFailure = async (
+    testMochaContext: Mocha.Context,
+    parentScreenshotFolder: string
+  ): Promise<void> => {
+    if (testMochaContext.currentTest && testMochaContext.currentTest.state !== 
"passed") {
+      const screenshotName = testMochaContext.currentTest?.fullTitle() + " 
(failed)";
+      const screenshotDir = path.join(parentScreenshotFolder, "screenshots");
+      await this.takeScreenshotAndSave(screenshotName, screenshotDir);
+    }
+  };
 }
 
 export function sleep(ms: number) {
diff --git a/packages/vscode-extension-pack-kogito-kie-editors/package.json 
b/packages/vscode-extension-pack-kogito-kie-editors/package.json
index 5c8ffce04b..40ac97ccdc 100644
--- a/packages/vscode-extension-pack-kogito-kie-editors/package.json
+++ b/packages/vscode-extension-pack-kogito-kie-editors/package.json
@@ -56,16 +56,19 @@
     "@kie-tools/stunner-editors": "workspace:*",
     "@kie-tools/tsconfig": "workspace:*",
     "@types/chai": "^4.2.17",
+    "@types/fs-extra": "^11.0.1",
     "@types/jest": "^26.0.23",
     "@types/jest-when": "^2.7.4",
     "@types/minimatch": "^3.0.4",
     "@types/mocha": "^8.2.2",
+    "@types/node": "^15.0.2",
     "@types/vscode": "^1.66.0",
     "@vscode/test-web": "^0.0.30",
     "chai": "^4.3.4",
     "copy-webpack-plugin": "^11.0.0",
     "cpr": "^3.0.1",
     "file-loader": "^6.2.0",
+    "fs-extra": "^11.1.1",
     "jest": "^26.6.3",
     "jest-junit": "^14.0.0",
     "jest-when": "^3.5.0",
@@ -74,6 +77,7 @@
     "mocha-junit-reporter": "^2.0.2",
     "mocha-multi-reporters": "^1.5.1",
     "rimraf": "^3.0.2",
+    "sanitize-filename-ts": "^1.0.2",
     "ts-jest": "^26.5.6",
     "typescript": "^4.4.2",
     "vsce": "^2.6.5",
diff --git 
a/packages/vscode-extension-serverless-workflow-editor/it-tests/helpers/VSCodeTestHelper.ts
 
b/packages/vscode-extension-serverless-workflow-editor/it-tests/helpers/VSCodeTestHelper.ts
index a169890235..5a1d760d6d 100644
--- 
a/packages/vscode-extension-serverless-workflow-editor/it-tests/helpers/VSCodeTestHelper.ts
+++ 
b/packages/vscode-extension-serverless-workflow-editor/it-tests/helpers/VSCodeTestHelper.ts
@@ -14,7 +14,11 @@
  * limitations under the License.
  */
 
-import { assert } from "chai";
+import { assert, expect } from "chai";
+import * as path from "path";
+import * as fs from "fs-extra";
+import { sanitize } from "sanitize-filename-ts";
+import { Key } from "selenium-webdriver";
 import {
   ActivityBar,
   By,
@@ -235,6 +239,35 @@ export default class VSCodeTestHelper {
 
     throw new Error(`'${command}' not found in prompt`);
   };
+
+  /**
+   * Creates screenshot of current VSCode window and saves it to given path.
+   *
+   * @param name screenshot file name without extension
+   * @param dirPath path to a folder to store screenshots (will be created if 
doesn't exist)
+   */
+  private takeScreenshotAndSave = async (name: string, dirPath: string): 
Promise<void> => {
+    const data = await this.driver.takeScreenshot();
+    fs.mkdirpSync(dirPath);
+    fs.writeFileSync(path.join(dirPath, `${sanitize(name)}.png`), data, 
"base64");
+  };
+
+  /**
+   * Takes a screenshot if the current test fails and saves it in the 
specified directory.
+   *
+   * @param {Mocha.Context} testMochaContext The current Mocha test context.
+   * @param {string} parentScreenshotFolder The parent directory where the 
screenshot will be saved.
+   */
+  public takeScreenshotOnTestFailure = async (
+    testMochaContext: Mocha.Context,
+    parentScreenshotFolder: string
+  ): Promise<void> => {
+    if (testMochaContext.currentTest && testMochaContext.currentTest.state !== 
"passed") {
+      const screenshotName = testMochaContext.currentTest?.fullTitle() + " 
(failed)";
+      const screenshotDir = path.join(parentScreenshotFolder, "screenshots");
+      await this.takeScreenshotAndSave(screenshotName, screenshotDir);
+    }
+  };
 }
 
 export function sleep(ms: number) {
diff --git 
a/packages/vscode-extension-serverless-workflow-editor/it-tests/serverless-workflow-editor-extension-autocompletion.test.ts
 
b/packages/vscode-extension-serverless-workflow-editor/it-tests/serverless-workflow-editor-extension-autocompletion.test.ts
index c943723d61..def2e5b663 100644
--- 
a/packages/vscode-extension-serverless-workflow-editor/it-tests/serverless-workflow-editor-extension-autocompletion.test.ts
+++ 
b/packages/vscode-extension-serverless-workflow-editor/it-tests/serverless-workflow-editor-extension-autocompletion.test.ts
@@ -25,6 +25,7 @@ import SwfTextEditorTestHelper from 
"./helpers/swf/SwfTextEditorTestHelper";
 // KOGITO-8071 - Flaky test - 
serverless-workflow-editor-extension-autocompletion.test.ts
 describe.skip("Serverless workflow editor - autocompletion tests", () => {
   const TEST_PROJECT_FOLDER: string = path.resolve("it-tests-tmp", 
"resources", "autocompletion");
+  const DIST_IT_TESTS_FOLDER: string = path.resolve("dist-it-tests");
 
   let testHelper: VSCodeTestHelper;
 
@@ -41,6 +42,7 @@ describe.skip("Serverless workflow editor - autocompletion 
tests", () => {
 
   afterEach(async function () {
     this.timeout(15000);
+    await testHelper.takeScreenshotOnTestFailure(this, DIST_IT_TESTS_FOLDER);
     await testHelper.closeAllEditors();
     await testHelper.closeAllNotifications();
   });
diff --git 
a/packages/vscode-extension-serverless-workflow-editor/it-tests/serverless-workflow-editor-extension-smoke.test.ts
 
b/packages/vscode-extension-serverless-workflow-editor/it-tests/serverless-workflow-editor-extension-smoke.test.ts
index 6a05daa63f..c827a65309 100644
--- 
a/packages/vscode-extension-serverless-workflow-editor/it-tests/serverless-workflow-editor-extension-smoke.test.ts
+++ 
b/packages/vscode-extension-serverless-workflow-editor/it-tests/serverless-workflow-editor-extension-smoke.test.ts
@@ -22,6 +22,7 @@ import SwfTextEditorTestHelper from 
"./helpers/swf/SwfTextEditorTestHelper";
 
 describe("Serverless workflow editor - smoke integration tests", () => {
   const TEST_PROJECT_FOLDER: string = path.resolve("it-tests-tmp", 
"resources", "greeting-flow");
+  const DIST_IT_TESTS_FOLDER: string = path.resolve("dist-it-tests");
 
   let testHelper: VSCodeTestHelper;
 
@@ -38,6 +39,7 @@ describe("Serverless workflow editor - smoke integration 
tests", () => {
 
   afterEach(async function () {
     this.timeout(15000);
+    await testHelper.takeScreenshotOnTestFailure(this, DIST_IT_TESTS_FOLDER);
     await testHelper.closeAllEditors();
     await testHelper.closeAllNotifications();
   });
diff --git 
a/packages/vscode-extension-serverless-workflow-editor/it-tests/serverless-workflow-editor-extension-syntax-highlight.test.ts
 
b/packages/vscode-extension-serverless-workflow-editor/it-tests/serverless-workflow-editor-extension-syntax-highlight.test.ts
index 17cf95d648..269f6e37a2 100644
--- 
a/packages/vscode-extension-serverless-workflow-editor/it-tests/serverless-workflow-editor-extension-syntax-highlight.test.ts
+++ 
b/packages/vscode-extension-serverless-workflow-editor/it-tests/serverless-workflow-editor-extension-syntax-highlight.test.ts
@@ -22,6 +22,7 @@ import SwfTextEditorTestHelper from 
"./helpers/swf/SwfTextEditorTestHelper";
 
 describe("Serverless workflow editor - syntax highlighting test", () => {
   const TEST_PROJECT_FOLDER: string = path.resolve("it-tests-tmp", 
"resources", "syntax-highlight");
+  const DIST_IT_TESTS_FOLDER: string = path.resolve("dist-it-tests");
 
   let testHelper: VSCodeTestHelper;
   let driver: WebDriver;
@@ -39,6 +40,7 @@ describe("Serverless workflow editor - syntax highlighting 
test", () => {
 
   afterEach(async function () {
     this.timeout(15000);
+    await testHelper.takeScreenshotOnTestFailure(this, DIST_IT_TESTS_FOLDER);
     await testHelper.closeAllEditors();
     await testHelper.closeAllNotifications();
   });
diff --git a/packages/vscode-extension-serverless-workflow-editor/package.json 
b/packages/vscode-extension-serverless-workflow-editor/package.json
index d5c257a0c4..e725860245 100644
--- a/packages/vscode-extension-serverless-workflow-editor/package.json
+++ b/packages/vscode-extension-serverless-workflow-editor/package.json
@@ -58,19 +58,23 @@
     "@kie-tools/serverless-workflow-diagram-editor-assets": "workspace:*",
     "@kie-tools/tsconfig": "workspace:*",
     "@types/chai": "^4.2.17",
+    "@types/fs-extra": "^11.0.1",
     "@types/mocha": "^8.2.2",
+    "@types/node": "^15.0.2",
     "@types/selenium-webdriver": "^4.1.7",
     "@types/vscode": "^1.66.0",
     "@vscode/test-web": "^0.0.30",
     "chai": "^4.3.4",
     "copy-webpack-plugin": "^11.0.0",
     "cpr": "^3.0.1",
+    "fs-extra": "^11.1.1",
     "mocha": "^9.2.0",
     "mocha-jenkins-reporter": "^0.4.5",
     "mocha-junit-reporter": "^2.0.2",
     "mocha-multi-reporters": "^1.5.1",
     "monaco-editor-webpack-plugin": "^7.0.1",
     "rimraf": "^3.0.2",
+    "sanitize-filename-ts": "^1.0.2",
     "selenium-webdriver": "^4.5.0",
     "typescript": "^4.4.2",
     "vsce": "^2.6.5",
diff --git 
a/packages/vscode-extension-yard-editor/it-tests/helpers/VSCodeTestHelper.ts 
b/packages/vscode-extension-yard-editor/it-tests/helpers/VSCodeTestHelper.ts
index 3bb195edad..77e6e20d5e 100644
--- a/packages/vscode-extension-yard-editor/it-tests/helpers/VSCodeTestHelper.ts
+++ b/packages/vscode-extension-yard-editor/it-tests/helpers/VSCodeTestHelper.ts
@@ -15,6 +15,9 @@
  */
 
 import { assert } from "chai";
+import * as path from "path";
+import * as fs from "fs-extra";
+import { sanitize } from "sanitize-filename-ts";
 import {
   ActivityBar,
   By,
@@ -233,6 +236,35 @@ export default class VSCodeTestHelper {
 
     throw new Error(`'${command}' not found in prompt`);
   };
+
+  /**
+   * Creates screenshot of current VSCode window and saves it to given path.
+   *
+   * @param name screenshot file name without extension
+   * @param dirPath path to a folder to store screenshots (will be created if 
doesn't exist)
+   */
+  private takeScreenshotAndSave = async (name: string, dirPath: string): 
Promise<void> => {
+    const data = await this.driver.takeScreenshot();
+    fs.mkdirpSync(dirPath);
+    fs.writeFileSync(path.join(dirPath, `${sanitize(name)}.png`), data, 
"base64");
+  };
+
+  /**
+   * Takes a screenshot if the current test fails and saves it in the 
specified directory.
+   *
+   * @param {Mocha.Context} testMochaContext The current Mocha test context.
+   * @param {string} parentScreenshotFolder The parent directory where the 
screenshot will be saved.
+   */
+  public takeScreenshotOnTestFailure = async (
+    testMochaContext: Mocha.Context,
+    parentScreenshotFolder: string
+  ): Promise<void> => {
+    if (testMochaContext.currentTest && testMochaContext.currentTest.state !== 
"passed") {
+      const screenshotName = testMochaContext.currentTest?.fullTitle() + " 
(failed)";
+      const screenshotDir = path.join(parentScreenshotFolder, "screenshots");
+      await this.takeScreenshotAndSave(screenshotName, screenshotDir);
+    }
+  };
 }
 
 export function sleep(ms: number) {
diff --git a/packages/vscode-extension-yard-editor/it-tests/yard-editor.test.ts 
b/packages/vscode-extension-yard-editor/it-tests/yard-editor.test.ts
index e4f3e70c12..9714d01e31 100644
--- a/packages/vscode-extension-yard-editor/it-tests/yard-editor.test.ts
+++ b/packages/vscode-extension-yard-editor/it-tests/yard-editor.test.ts
@@ -22,6 +22,7 @@ import YardTextEditorTestHelper from 
"./helpers/yard/YardTextEditorTestHelper";
 
 describe("yard editor - integration tests", () => {
   const TEST_PROJECT_FOLDER: string = path.resolve("it-tests-tmp", 
"resources");
+  const DIST_IT_TESTS_FOLDER: string = path.resolve("dist-it-tests");
   const EMPTY_YARD_JSON = "empty.yard.json";
   const EMPTY_YARD_YAML = "empty.yard.yaml";
   const EMPTY_YARD_YML = "empty.yard.yml";
@@ -41,6 +42,7 @@ describe("yard editor - integration tests", () => {
 
   afterEach(async function () {
     this.timeout(15000);
+    await testHelper.takeScreenshotOnTestFailure(this, DIST_IT_TESTS_FOLDER);
     await testHelper.closeAllEditors();
     await testHelper.closeAllNotifications();
   });
diff --git a/packages/vscode-extension-yard-editor/package.json 
b/packages/vscode-extension-yard-editor/package.json
index 1e2c41cc19..28506f3691 100644
--- a/packages/vscode-extension-yard-editor/package.json
+++ b/packages/vscode-extension-yard-editor/package.json
@@ -51,18 +51,22 @@
     "@kie-tools/root-env": "workspace:*",
     "@kie-tools/tsconfig": "workspace:*",
     "@types/chai": "^4.2.17",
+    "@types/fs-extra": "^11.0.1",
     "@types/mocha": "^8.2.2",
+    "@types/node": "^15.0.2",
     "@types/selenium-webdriver": "^4.1.7",
     "@types/vscode": "^1.66.0",
     "@vscode/test-web": "^0.0.30",
     "chai": "^4.3.4",
     "cpr": "^3.0.1",
+    "fs-extra": "^11.1.1",
     "mocha": "^9.2.0",
     "mocha-jenkins-reporter": "^0.4.5",
     "mocha-junit-reporter": "^2.0.2",
     "mocha-multi-reporters": "^1.5.1",
     "monaco-editor-webpack-plugin": "^7.0.1",
     "rimraf": "^3.0.2",
+    "sanitize-filename-ts": "^1.0.2",
     "selenium-webdriver": "^4.5.0",
     "typescript": "^4.4.2",
     "vsce": "^2.6.5",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 444177407e..b50e8b101c 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -5335,16 +5335,19 @@ importers:
       "@kie-tools/tsconfig": workspace:*
       "@kie-tools/vscode-java-code-completion-extension-plugin": workspace:*
       "@types/chai": ^4.2.17
+      "@types/fs-extra": ^11.0.1
       "@types/jest": ^26.0.23
       "@types/jest-when": ^2.7.4
       "@types/minimatch": ^3.0.4
       "@types/mocha": ^8.2.2
+      "@types/node": ^15.0.2
       "@types/vscode": ^1.66.0
       "@vscode/test-web": ^0.0.30
       chai: ^4.3.4
       copy-webpack-plugin: ^11.0.0
       cpr: ^3.0.1
       file-loader: ^6.2.0
+      fs-extra: ^11.1.1
       jest: ^26.6.3
       jest-junit: ^14.0.0
       jest-when: ^3.5.0
@@ -5355,6 +5358,7 @@ importers:
       mocha-multi-reporters: ^1.5.1
       monaco-editor: ^0.33.0
       rimraf: ^3.0.2
+      sanitize-filename-ts: ^1.0.2
       ts-jest: ^26.5.6
       typescript: ^4.4.2
       vsce: ^2.6.5
@@ -5389,16 +5393,19 @@ importers:
       "@kie-tools/stunner-editors": link:../stunner-editors
       "@kie-tools/tsconfig": link:../tsconfig
       "@types/chai": 4.2.18
+      "@types/fs-extra": 11.0.1
       "@types/jest": 26.0.23
       "@types/jest-when": 2.7.4
       "@types/minimatch": 3.0.4
       "@types/mocha": 8.2.2
+      "@types/node": 15.6.0
       "@types/vscode": 1.66.0
       "@vscode/test-web": 0.0.30
       chai: 4.3.4
       copy-webpack-plugin: [email protected]
       cpr: 3.0.1
       file-loader: [email protected]
+      fs-extra: 11.1.1
       jest: 26.6.3
       jest-junit: 14.0.0
       jest-when: [email protected]
@@ -5407,6 +5414,7 @@ importers:
       mocha-junit-reporter: [email protected]
       mocha-multi-reporters: [email protected]
       rimraf: 3.0.2
+      sanitize-filename-ts: 1.0.2
       ts-jest: 26.5.6_hoj6rh37du6uxub6buv3fchqgy
       typescript: 4.5.4
       vsce: 2.6.5
@@ -5514,13 +5522,16 @@ importers:
       "@kie-tools/tsconfig": workspace:*
       "@rhoas/registry-instance-sdk": ^0.34.1
       "@types/chai": ^4.2.17
+      "@types/fs-extra": ^11.0.1
       "@types/mocha": ^8.2.2
+      "@types/node": ^15.0.2
       "@types/selenium-webdriver": ^4.1.7
       "@types/vscode": ^1.66.0
       "@vscode/test-web": ^0.0.30
       chai: ^4.3.4
       copy-webpack-plugin: ^11.0.0
       cpr: ^3.0.1
+      fs-extra: ^11.1.1
       mocha: ^9.2.0
       mocha-jenkins-reporter: ^0.4.5
       mocha-junit-reporter: ^2.0.2
@@ -5530,6 +5541,7 @@ importers:
       monaco-yaml: ^4.0.0
       openapi-types: ^7.0.1
       rimraf: ^3.0.2
+      sanitize-filename-ts: ^1.0.2
       selenium-webdriver: ^4.5.0
       typescript: ^4.4.2
       vsce: ^2.6.5
@@ -5572,19 +5584,23 @@ importers:
       "@kie-tools/serverless-workflow-diagram-editor-assets": 
link:../serverless-workflow-diagram-editor-assets
       "@kie-tools/tsconfig": link:../tsconfig
       "@types/chai": 4.2.18
+      "@types/fs-extra": 11.0.1
       "@types/mocha": 8.2.2
+      "@types/node": 15.6.0
       "@types/selenium-webdriver": 4.1.7
       "@types/vscode": 1.66.0
       "@vscode/test-web": 0.0.30
       chai: 4.3.4
       copy-webpack-plugin: [email protected]
       cpr: 3.0.1
+      fs-extra: 11.1.1
       mocha: 9.2.0
       mocha-jenkins-reporter: [email protected]
       mocha-junit-reporter: [email protected]
       mocha-multi-reporters: [email protected]
       monaco-editor-webpack-plugin: 7.0.1_6bqvh7qoz5jkzhww4ewgshaczm
       rimraf: 3.0.2
+      sanitize-filename-ts: 1.0.2
       selenium-webdriver: 4.5.0
       typescript: 4.5.4
       vsce: 2.6.5
@@ -5613,12 +5629,15 @@ importers:
       "@kie-tools/tsconfig": workspace:*
       "@kie-tools/yard-editor": workspace:*
       "@types/chai": ^4.2.17
+      "@types/fs-extra": ^11.0.1
       "@types/mocha": ^8.2.2
+      "@types/node": ^15.0.2
       "@types/selenium-webdriver": ^4.1.7
       "@types/vscode": ^1.66.0
       "@vscode/test-web": ^0.0.30
       chai: ^4.3.4
       cpr: ^3.0.1
+      fs-extra: ^11.1.1
       mocha: ^9.2.0
       mocha-jenkins-reporter: ^0.4.5
       mocha-junit-reporter: ^2.0.2
@@ -5628,6 +5647,7 @@ importers:
       monaco-yaml: ^4.0.0
       openapi-types: ^7.0.1
       rimraf: ^3.0.2
+      sanitize-filename-ts: ^1.0.2
       selenium-webdriver: ^4.5.0
       typescript: ^4.4.2
       vsce: ^2.6.5
@@ -5664,18 +5684,22 @@ importers:
       "@kie-tools/root-env": link:../root-env
       "@kie-tools/tsconfig": link:../tsconfig
       "@types/chai": 4.2.18
+      "@types/fs-extra": 11.0.1
       "@types/mocha": 8.2.2
+      "@types/node": 15.6.0
       "@types/selenium-webdriver": 4.1.7
       "@types/vscode": 1.66.0
       "@vscode/test-web": 0.0.30
       chai: 4.3.4
       cpr: 3.0.1
+      fs-extra: 11.1.1
       mocha: 9.2.0
       mocha-jenkins-reporter: [email protected]
       mocha-junit-reporter: [email protected]
       mocha-multi-reporters: [email protected]
       monaco-editor-webpack-plugin: 7.0.1_6bqvh7qoz5jkzhww4ewgshaczm
       rimraf: 3.0.2
+      sanitize-filename-ts: 1.0.2
       selenium-webdriver: 4.5.0
       typescript: 4.5.4
       vsce: 2.6.5
@@ -10280,7 +10304,7 @@ packages:
     dependencies:
       "@types/http-cache-semantics": 4.0.0
       "@types/keyv": 3.1.1
-      "@types/node": 17.0.12
+      "@types/node": 18.16.2
       "@types/responselike": 1.0.0
     dev: true
 
@@ -10440,6 +10464,14 @@ packages:
       { integrity: 
sha512-AR2KUJIMdSfl/SaAHpRotBAlaJpmhgHwehEeSJQOG0hS3IrjDU16xUEEUTdqcvdLa1q16ZK5MMrtOagfLvm0gw==
 }
     dev: true
 
+  /@types/fs-extra/11.0.1:
+    resolution:
+      { integrity: 
sha512-MxObHvNl4A69ofaTRU8DFqvgzzv8s9yRtaPPm5gud9HDNvpB3GPQFvNuTWAI59B9huVGV5jXYJwbCsmBsOGYWA==
 }
+    dependencies:
+      "@types/jsonfile": 6.1.1
+      "@types/node": 18.16.2
+    dev: true
+
   /@types/geojson/7946.0.8:
     resolution:
       { integrity: 
sha512-1rkryxURpr6aWP7R786/UQOkJ3PcpQiWkAXBmdWc7ryFWqN6a4xfK7BtjXvFBKO9LjQ+MWQSWxYeZX1OApnArA==
 }
@@ -10567,11 +10599,18 @@ packages:
       { integrity: 
sha512-GEjR5l9wZGS74KhL1a1tZuyRJqdLB7LGgOXzWspJx9xxC/iyCFTwwKv71Lz8fzZyGuVW8FjASQGoYFi6XZJWLQ==
 }
     dev: true
 
+  /@types/jsonfile/6.1.1:
+    resolution:
+      { integrity: 
sha512-GSgiRCVeapDN+3pqA35IkQwasaCh/0YFH5dEF6S88iDvEn901DjOeH3/QPY+XYP1DFzDZPvIvfeEgk+7br5png==
 }
+    dependencies:
+      "@types/node": 18.16.2
+    dev: true
+
   /@types/keyv/3.1.1:
     resolution:
       { integrity: 
sha512-MPtoySlAZQ37VoLaPcTHCu1RWJ4llDkULYZIzOYxlhxBqYPB0RsRlmMU0R6tahtFe27mIdkHV+551ZWV4PLmVw==
 }
     dependencies:
-      "@types/node": 17.0.12
+      "@types/node": 18.16.2
     dev: true
 
   /@types/leaflet/0.7.35:
@@ -10643,6 +10682,11 @@ packages:
       { integrity: 
sha512-4YpbAsnJXWYK/fpTVFlMIcUIho2AYCi4wg5aNPrG1ng7fn/1/RZfCIpRCiBX+12RVa34RluilnvCqD+g3KiSiA==
 }
     dev: true
 
+  /@types/node/18.16.2:
+    resolution:
+      { integrity: 
sha512-GQW/JL/5Fz/0I8RpeBG9lKp0+aNcXEaVL71c0D2Q0QHDTFvlYKT7an0onCUXj85anv7b4/WesqdfchLc0jtsCg==
 }
+    dev: true
+
   /@types/normalize-package-data/2.4.0:
     resolution:
       { integrity: 
sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==
 }
@@ -10781,7 +10825,7 @@ packages:
     resolution:
       { integrity: 
sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==
 }
     dependencies:
-      "@types/node": 17.0.12
+      "@types/node": 18.16.2
     dev: true
 
   /@types/retry/0.12.1:
@@ -16930,6 +16974,16 @@ packages:
       universalify: 2.0.0
     dev: true
 
+  /fs-extra/11.1.1:
+    resolution:
+      { integrity: 
sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==
 }
+    engines: { node: ">=14.14" }
+    dependencies:
+      graceful-fs: 4.2.10
+      jsonfile: 6.1.0
+      universalify: 2.0.0
+    dev: true
+
   /fs-extra/7.0.1:
     resolution:
       { integrity: 
sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==
 }
@@ -20902,7 +20956,7 @@ packages:
       clipboardy: 2.3.0
       clone-deep: 4.0.1
       compare-versions: 3.6.0
-      fs-extra: 10.0.0
+      fs-extra: 10.1.0
       selenium-webdriver: 4.2.0
       ts-essentials: [email protected]
     transitivePeerDependencies:
@@ -21075,6 +21129,7 @@ packages:
       { integrity: 
sha512-6R9fqJ5Zcmf+uYaFgdIHmLwNldn5HbK8L5ybn7Uz+ylX/rnOsSp1AHcvQSrCaFN+qNM1wpymHqD7mVasEOlHGQ==
 }
     engines: { node: ">= 4.4.x" }
     hasBin: true
+    requiresBuild: true
     dependencies:
       debug: 3.2.7
       iconv-lite: 0.4.24
@@ -24123,6 +24178,13 @@ packages:
       walker: 1.0.7
     dev: true
 
+  /sanitize-filename-ts/1.0.2:
+    resolution:
+      { integrity: 
sha512-bON2VOJoappmaBHlnxvBNk5R7HkUAsirf5m1M5Kz15uZykDGbHfGPCQNcEQKR8HrQhgh9CmQ6Xe9y71yM9ywkw==
 }
+    dependencies:
+      truncate-utf8-bytes: 1.0.2
+    dev: true
+
   /sanitize-filename/1.6.3:
     resolution:
       { integrity: 
sha512-y/52Mcy7aw3gRm7IrcGDFx/bCk4AhRh2eI9luHOQM86nZsqwiRkkq2GekHXBBD+SmPidc8i2PqtYZl+pWJ8Oeg==
 }
@@ -26781,7 +26843,7 @@ packages:
       "@types/selenium-webdriver": 4.1.1
       commander: 8.3.0
       compare-versions: 3.6.0
-      fs-extra: 10.0.0
+      fs-extra: 10.1.0
       glob: 7.2.0
       got: 11.8.2
       hpagent: 0.1.2


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to