nodejs: add tests to library (#7694)

* nodejs: add tests to library

* new tests

* remove message splitting

* fix race

* docs

* replace extract-zip with yauzl that it wraps (high severity issue)

* fix ci tests

* skip server tests on macos and win unless SMP_SERVER is set

* fix win test

* fix win test

---------

Co-authored-by: Evgeny @ SimpleX Chat <259188159+evgeny-simplex@users.noreply.github.com>
This commit is contained in:
EvgenyandEvgeny @ SimpleX Chat authored and GitHub committed 2026-10-19 19:49:44 +01:00
1 parent ba9269a3ad
commit 46b2cf9f85
73 files changed
+957 -265

No files matched your search

@@ -6,7 +6,7 @@
# Class: ChatAPIError
Defined in: [src/core.ts:117](../src/core.ts#L117)
Defined in: [src/core.ts:117](../core.ts#L117)
## Extends
@@ -18,7 +18,7 @@ Defined in: [src/core.ts:117](../src/core.ts#L117)
> **new ChatAPIError**(`message`, `chatError?`): `ChatAPIError`
Defined in: [src/core.ts:118](../src/core.ts#L118)
Defined in: [src/core.ts:118](../core.ts#L118)
#### Parameters
@@ -28,7 +28,7 @@ Defined in: [src/core.ts:118](../src/core.ts#L118)
##### chatError?
`ChatError` \| `undefined`
`ChatError` \| `undefined` = `undefined`
#### Returns
@@ -44,7 +44,7 @@ Defined in: [src/core.ts:118](../src/core.ts#L118)
> **chatError**: `ChatError` \| `undefined` = `undefined`
Defined in: [src/core.ts:118](../src/core.ts#L118)
Defined in: [src/core.ts:118](../core.ts#L118)
***
@@ -52,7 +52,7 @@ Defined in: [src/core.ts:118](../src/core.ts#L118)
> **message**: `string`
Defined in: [src/core.ts:118](../src/core.ts#L118)
Defined in: [src/core.ts:118](../core.ts#L118)
#### Inherited from
@@ -64,7 +64,7 @@ Defined in: [src/core.ts:118](../src/core.ts#L118)
> **name**: `string`
Defined in: [node\_modules/typescript/lib/lib.es5.d.ts:1076](../node_modules/typescript/lib/lib.es5.d.ts#L1076)
Defined in: [node\_modules/typescript/lib/lib.es5.d.ts:1076](../../node_modules/typescript/lib/lib.es5.d.ts#L1076)
#### Inherited from
@@ -76,7 +76,7 @@ Defined in: [node\_modules/typescript/lib/lib.es5.d.ts:1076](../node_modules/typ
> `optional` **stack?**: `string`
Defined in: [node\_modules/typescript/lib/lib.es5.d.ts:1078](../node_modules/typescript/lib/lib.es5.d.ts#L1078)
Defined in: [node\_modules/typescript/lib/lib.es5.d.ts:1078](../../node_modules/typescript/lib/lib.es5.d.ts#L1078)
#### Inherited from
@@ -88,7 +88,7 @@ Defined in: [node\_modules/typescript/lib/lib.es5.d.ts:1078](../node_modules/typ
> `static` **stackTraceLimit**: `number`
Defined in: [node\_modules/@types/node/globals.d.ts:67](../node_modules/@types/node/globals.d.ts#L67)
Defined in: [node\_modules/@types/node/globals.d.ts:67](../../node_modules/@types/node/globals.d.ts#L67)
The `Error.stackTraceLimit` property specifies the number of stack frames
collected by a stack trace (whether generated by `new Error().stack` or
@@ -110,7 +110,7 @@ not capture any frames.
> `static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
Defined in: [node\_modules/@types/node/globals.d.ts:51](../node_modules/@types/node/globals.d.ts#L51)
Defined in: [node\_modules/@types/node/globals.d.ts:51](../../node_modules/@types/node/globals.d.ts#L51)
Creates a `.stack` property on `targetObject`, which when accessed returns
a string representing the location in the code at which
@@ -180,7 +180,7 @@ a();
> `static` **prepareStackTrace**(`err`, `stackTraces`): `any`
Defined in: [node\_modules/@types/node/globals.d.ts:55](../node_modules/@types/node/globals.d.ts#L55)
Defined in: [node\_modules/@types/node/globals.d.ts:55](../../node_modules/@types/node/globals.d.ts#L55)
#### Parameters