@ohos-ports/floss 5.0.1-beta.3 → 5.0.1-beta.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.
@@ -89,6 +89,8 @@ function runInNode(opts) {
89
89
  }
90
90
  // Add resolved files to Mocha
91
91
  resolvedFiles.forEach((file) => mochaInst.addFile(file));
92
+ // Set global.options for test files that depend on it (same as renderer.js)
93
+ global.options = opts;
92
94
  // Run tests
93
95
  mochaInst.run((errorCount) => {
94
96
  if (errorCount > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ohos-ports/floss",
3
- "version": "5.0.1-beta.3",
3
+ "version": "5.0.1-beta.4",
4
4
  "description": "Unit-testing for those hard to reach places",
5
5
  "bin": "./lib/floss.js",
6
6
  "main": "./lib/index.js",