artes 1.2.3 → 1.2.4

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/executer.js CHANGED
@@ -7,10 +7,17 @@ const {
7
7
  generateReport,
8
8
  cleanUp,
9
9
  } = require("./src/helper/executers/exporter");
10
- const artesConfig = require("../../artes.config");
11
10
  const fs = require("fs");
12
11
  const path = require("path");
13
12
 
13
+ const configPath = path.resolve(process.cwd(), "artes.config.js");
14
+
15
+ let artesConfig = {};
16
+
17
+ if (fs.existsSync(configPath)) {
18
+ artesConfig = require(configPath);
19
+ }
20
+
14
21
  const args = process.argv.slice(2);
15
22
 
16
23
  const flags = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artes",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "The simplest way to automate UI and API tests using Cucumber-style steps.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -174,7 +174,7 @@ export function AfterAll() {
174
174
  );
175
175
  fs.writeFileSync(path.join(srcDir, "POMs", "example.pom.json"), pomContent);
176
176
  fs.writeFileSync(path.join(srcDir, "steps", "common.steps.js"), stepsContent);
177
- fs.writeFileSync(path.join(srcDir, "steps", "common.steps.js"), hooksContent);
177
+ fs.writeFileSync(path.join(srcDir, "steps", "hooks.js"), hooksContent);
178
178
 
179
179
  fs.writeFileSync(
180
180
  path.join(projectDir, ".vscode", "settings.json"),