@nsshunt/ststestrunner 1.1.36 → 1.1.37
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/dist/ststestrunner.cjs +10 -5
- package/dist/ststestrunner.cjs.map +1 -1
- package/dist/ststestrunner.mjs +10 -5
- package/dist/ststestrunner.mjs.map +1 -1
- package/package.json +1 -1
- package/types/libmodule/workerTestCaseLogger.d.ts +1 -1
- package/types/libmodule/workerTestCaseLogger.d.ts.map +1 -1
package/dist/ststestrunner.cjs
CHANGED
|
@@ -35812,11 +35812,16 @@ var WorkerTestCaseLogger = class {
|
|
|
35812
35812
|
#socketIoClient;
|
|
35813
35813
|
#logger;
|
|
35814
35814
|
constructor(opts) {
|
|
35815
|
-
|
|
35816
|
-
|
|
35817
|
-
|
|
35818
|
-
|
|
35819
|
-
|
|
35815
|
+
try {
|
|
35816
|
+
this.#options = opts;
|
|
35817
|
+
if (this.#options.outputToDefaultLogger === true) this.#logger = _nsshunt_stsutils.defaultLogger;
|
|
35818
|
+
else this.#logger = _nsshunt_stsutils.emptyLogger;
|
|
35819
|
+
this.#socketIoClient = new WorkerTestCaseLogPublisher(this.#options.rooms);
|
|
35820
|
+
this.#socketIoClient.Start(opts.imendpoint, opts.import, opts.imsocketnamespace);
|
|
35821
|
+
} catch (error) {
|
|
35822
|
+
console.error(error);
|
|
35823
|
+
throw error;
|
|
35824
|
+
}
|
|
35820
35825
|
}
|
|
35821
35826
|
UsePrefix = (message) => {
|
|
35822
35827
|
return `[][] ==>> ${message}`;
|