@noy-db/test-format-conformance 0.7.0-pre.10 → 0.7.0-pre.12
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/README.md +11 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,19 +4,29 @@ The `as-*` export gate, published as an executable suite.
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
import { runFormatConformanceTests } from '@noy-db/test-format-conformance'
|
|
7
|
+
import { asMyformat, download, write } from '../src/index.js'
|
|
7
8
|
|
|
8
9
|
runFormatConformanceTests('as-myformat', {
|
|
10
|
+
tier: 'plaintext', // or 'bundle' for an encrypted-pod format (then omit `format`)
|
|
9
11
|
format: 'myformat',
|
|
10
12
|
vault: () => seededExportCapableVault(),
|
|
13
|
+
// The format's WHOLE surface: the inverted entry (hub owns the read —
|
|
14
|
+
// ADR 0004) plus any argument-shape wrappers the package still exports.
|
|
11
15
|
exports: [
|
|
12
|
-
{ name: '
|
|
16
|
+
{ name: 'vault.export(asMyformat())', run: (v) => v.export(asMyformat(), { collections: ['invoices'] }) },
|
|
13
17
|
{ name: 'download', run: (v) => download(v, opts) },
|
|
14
18
|
{ name: 'write', run: (v) => write(v, path, { ...opts, acknowledgeRisks: true }) },
|
|
15
19
|
],
|
|
20
|
+
imports: [
|
|
21
|
+
{ name: 'vault.import(asMyformat())', run: (v) => v.import(asMyformat(), payload, { collection: 'invoices' }) },
|
|
22
|
+
],
|
|
16
23
|
writeWithoutAcknowledgement: (v, path) => write(v, path, opts),
|
|
17
24
|
})
|
|
18
25
|
```
|
|
19
26
|
|
|
27
|
+
(For a complete, compiling fixture see `packages/as-csv/__tests__/conformance.test.ts` —
|
|
28
|
+
the canonical consumer.)
|
|
29
|
+
|
|
20
30
|
## What it checks
|
|
21
31
|
|
|
22
32
|
`as-*` is the one place plaintext leaves the vault. Every package calls
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noy-db/test-format-conformance",
|
|
3
|
-
"version": "0.7.0-pre.
|
|
3
|
+
"version": "0.7.0-pre.12",
|
|
4
4
|
"description": "Parameterized contract tests for noy-db as-* formats — the export-gate suite every plaintext projection must pass",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "vLannaAi <vicio@lanna.ai>",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"vitest": "^3.0.0",
|
|
36
|
-
"@noy-db/hub": "^0.7.0-pre.
|
|
36
|
+
"@noy-db/hub": "^0.7.0-pre.12"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"vitest": "^3.0.0",
|
|
40
|
-
"@noy-db/hub": "0.7.0-pre.
|
|
40
|
+
"@noy-db/hub": "0.7.0-pre.12"
|
|
41
41
|
},
|
|
42
42
|
"keywords": [
|
|
43
43
|
"noy-db",
|