@ohos-ports/floss 5.0.1-beta.5 → 5.0.1-beta.6

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.
@@ -87,6 +87,14 @@ function runInNode(opts) {
87
87
  if (opts.require) {
88
88
  require(opts.require);
89
89
  }
90
+ // Inject opts.args into process.argv (mimics spawn(electronPath, [app, args, ...opts.args]))
91
+ if (opts.args && opts.args.length > 0) {
92
+ for (const arg of opts.args) {
93
+ if (!process.argv.includes(arg)) {
94
+ process.argv.push(arg);
95
+ }
96
+ }
97
+ }
90
98
  // Add resolved files to Mocha
91
99
  resolvedFiles.forEach((file) => mochaInst.addFile(file));
92
100
  // Set global.options for test files that depend on it (same as renderer.js)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ohos-ports/floss",
3
- "version": "5.0.1-beta.5",
3
+ "version": "5.0.1-beta.6",
4
4
  "description": "Unit-testing for those hard to reach places",
5
5
  "bin": "./lib/floss.js",
6
6
  "main": "./lib/index.js",