slnodejs 6.1.1128 → 6.1.1129
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
|
@@ -55,7 +55,13 @@ class MochaExecutor extends test_listener_executor_1.TestListenerExecutor {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
getMochaPath() {
|
|
58
|
-
|
|
58
|
+
// Use mocha's actual JavaScript entry point directly.
|
|
59
|
+
// This works with all package managers (npm, pnpm, yarn) and avoids
|
|
60
|
+
// issues with .bin/ shell script wrappers that some package managers create.
|
|
61
|
+
// On Windows, use _mocha for backward compatibility with older mocha versions.
|
|
62
|
+
return /^win/.test(process.platform)
|
|
63
|
+
? 'mocha/bin/_mocha'
|
|
64
|
+
: 'mocha/bin/mocha';
|
|
59
65
|
}
|
|
60
66
|
}
|
|
61
67
|
exports.MochaExecutor = MochaExecutor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mocha-executor.js","sourceRoot":"","sources":["../../../cli-parse/executors/mocha-executor.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qEAAgE;AAChE,sHAA8G;AAC9G,oEAA+D;AAC/D,+BAA+B;AAC/B,mEAA+D;AAG/D,MAAa,aAAc,SAAQ,6CAAoB;IAAvD;;QACU,sBAAiB,GAAG,IAAA,cAAO,EAAC,SAAS,EAAE,4BAA4B,CAAC,CAAC;QACnE,gBAAW,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"mocha-executor.js","sourceRoot":"","sources":["../../../cli-parse/executors/mocha-executor.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qEAAgE;AAChE,sHAA8G;AAC9G,oEAA+D;AAC/D,+BAA+B;AAC/B,mEAA+D;AAG/D,MAAa,aAAc,SAAQ,6CAAoB;IAAvD;;QACU,sBAAiB,GAAG,IAAA,cAAO,EAAC,SAAS,EAAE,4BAA4B,CAAC,CAAC;QACnE,gBAAW,GAAG,OAA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