artes 1.2.25 → 1.2.26

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.
@@ -60,11 +60,13 @@ module.exports = {
60
60
  timeout: process.env.TIMEOUT
61
61
  ? Number(process.env.TIMEOUT) * 1000
62
62
  : artesConfig.timeout * 1000 || 30 * 1000, // Default timeout in seconds
63
- paths: process.env.FEATURES
64
- ? [path.join(moduleConfig.projectPath, process.env.FEATURES)]
65
- : artesConfig.features
66
- ? path.join(moduleConfig.projectPath, artesConfig.features)
67
- : [moduleConfig.featuresPath], // Paths to feature files
63
+ paths: process.env.RERUN
64
+ ? [`${path.join("../../", process.env.RERUN)}`]
65
+ : process.env.FEATURES
66
+ ? [path.join(moduleConfig.projectPath, process.env.FEATURES)]
67
+ : artesConfig.features
68
+ ? [path.join(moduleConfig.projectPath, artesConfig.features)]
69
+ : [moduleConfig.featuresPath], // Paths to feature files
68
70
  require: [
69
71
  process.env.STEP_DEFINITIONS
70
72
  ? [path.join(moduleConfig.projectPath, process.env.STEP_DEFINITIONS)]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artes",
3
- "version": "1.2.25",
3
+ "version": "1.2.26",
4
4
  "description": "The simplest way to automate UI and API tests using Cucumber-style steps.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -5,15 +5,10 @@ const path = require("path");
5
5
  function runTests() {
6
6
  try {
7
7
  console.log("🧪 Running tests...");
8
- process.env.FORCE_COLOR = "1";
9
- process.env.FORCE_STDIO_TTY = "1";
10
8
 
11
9
  spawnSync(
12
10
  "cucumber-js",
13
- [
14
- "--config=cucumber.config.js",
15
- `${process.env.RERUN ? path.join("../../", process.env.RERUN) : ""}`,
16
- ],
11
+ [ "--config=cucumber.config.js"],
17
12
  {
18
13
  cwd: moduleConfig.modulePath,
19
14
  stdio: "inherit",