@syncmatters/connector-sdk 1.0.7 → 1.0.8
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/docs/09-testing.md +7 -0
- package/package.json +2 -2
package/docs/09-testing.md
CHANGED
|
@@ -248,6 +248,13 @@ The harness always executes platform-side. What each entry point actually runs:
|
|
|
248
248
|
| `sm test --only query` | Every object's plain list query only — no ids/checkpoint/match/related, no writes. |
|
|
249
249
|
| Web UI (connector → test results → run) | Same engine, feature selection via the run dialog. |
|
|
250
250
|
|
|
251
|
+
Each feature test records the inputs it ran with and what the connector returned — pass or
|
|
252
|
+
fail — onto the saved result as diagnostic `details` (the ids an `idsFilter` ran with and the
|
|
253
|
+
rows returned; expected vs actual rows per match rule / relationship; upserted rows and their
|
|
254
|
+
query-back). Review them on the web UI's test results screen instead of re-running with extra
|
|
255
|
+
logging. Payloads over the size budget are dropped and flagged `truncated`; details hold real
|
|
256
|
+
connection data and are scrubbed ~48 hours after the run (statuses are kept).
|
|
257
|
+
|
|
251
258
|
Do not mistake a passing `--only connection` or `--only query` for suite coverage — only the
|
|
252
259
|
full run exercises the prepare hooks and write features. `sm test` needs a developer token
|
|
253
260
|
with the `scripts:read`, `connections:read` and `scripts:execute` scopes; a 403 from the CLI
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncmatters/connector-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "TypeScript type definitions for the SyncMatters connector SDK (types only - connectors execute on the SyncMatters platform)",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"author": "SyncMatters",
|
|
14
14
|
"homepage": "https://syncmatters.com",
|
|
15
|
-
"typesContentHash": "
|
|
15
|
+
"typesContentHash": "38cad56617a6326dd04e6b8d467217d541bcc950f4aaea59ef04f7186caa7bfb",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@types/node": "*",
|
|
18
18
|
"@syncmatters/script-api": "^1.0.6"
|