@dev-blinq/cucumber_client 1.0.1607-dev → 1.0.1608-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.
@@ -382,7 +382,12 @@ const _generateCodeFromCommand = (step, elements, userData) => {
382
382
  if (data) {
383
383
  try {
384
384
  const { snapshot, fileName, filePath } = data;
385
- const folderPath = process.env.BVT_TEMP_SNAPSHOTS_FOLDER ?? filePath;
385
+ let folderPath = filePath;
386
+ if (process.env.BVT_TEMP_SNAPSHOTS_FOLDER) {
387
+ const envName = path.basename(process.env.BLINQ_ENV).replace(".json", "");
388
+ folderPath = path.join(process.env.BVT_TEMP_SNAPSHOTS_FOLDER, envName);
389
+ }
390
+ // const folderPath = process.env.BVT_TEMP_SNAPSHOTS_FOLDER ?? filePath;
386
391
  const filePathWithName = path.join(folderPath, fileName);
387
392
  if (!fs.existsSync(folderPath)) {
388
393
  fs.mkdirSync(folderPath, { recursive: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-blinq/cucumber_client",
3
- "version": "1.0.1607-dev",
3
+ "version": "1.0.1608-dev",
4
4
  "description": " ",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",