@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.
- package/lib/node-runner.js +2 -0
- package/package.json +1 -1
package/lib/node-runner.js
CHANGED
|
@@ -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) {
|