simple-playwright-framework 0.0.12 → 0.0.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simple-playwright-framework",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "description": "A modular Playwright framework with fixtures, loaders, and demo scaffolding.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -37,10 +37,10 @@
37
37
  "devDependencies": {
38
38
  "@playwright/test": "^1.58.2",
39
39
  "@types/node": "^25.2.3",
40
+ "node-fetch": "^2.7.0",
40
41
  "rimraf": "^6.1.2",
41
42
  "ts-node": "^10.9.2",
42
43
  "tsconfig-paths": "^4.2.0",
43
- "typescript": "^5.9.3",
44
- "node-fetch": "^2.6.7"
44
+ "typescript": "^5.9.3"
45
45
  }
46
46
  }
@@ -34,7 +34,8 @@ writeFileSafe(path.join(demoDir, "package.json"),
34
34
  "@playwright/test": "^1.58.2",
35
35
  "simple-playwright-framework": "latest",
36
36
  "@types/node": "^20.0.0",
37
- "rimraf": "^5.0.0"
37
+ "rimraf": "^5.0.0",
38
+ "node-fetch": "^2.6.7"
38
39
  }
39
40
  }, null, 2)
40
41
  );
@@ -67,12 +68,15 @@ export default defineConfig({
67
68
  testDir: './tests',
68
69
  reporter: [['html']],
69
70
  use: {
70
- // Default environment for scenarioLoader
71
- env: process.env.TEST_ENV || "prod",
71
+ // keep Playwright's own options here
72
72
  },
73
73
  });
74
+
75
+ // ✅ Default environment set to "prod"
76
+ process.env.TEST_ENV = process.env.TEST_ENV || "prod";
74
77
  `);
75
78
 
79
+
76
80
  // -------------------- environments.json --------------------
77
81
  writeFileSafe(path.join(demoDir, "config/environments.json"),
78
82
  JSON.stringify({