@impz/testing 0.0.0-stage → 4.2.0
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/LICENSE +21 -0
- package/README.md +98 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.js +57781 -0
- package/dist/start-test-impd.d.ts +2 -0
- package/dist/test-token.d.ts +1 -0
- package/dist/types.d.ts +17 -0
- package/package.json +58 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TEST_TOKEN: string;
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Duplex } from 'node:stream';
|
|
2
|
+
import type { ImpClient } from '@impz/client';
|
|
3
|
+
export interface TestImpdOptions {
|
|
4
|
+
readonly env?: Readonly<Record<string, string>>;
|
|
5
|
+
readonly onLog?: (message: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export interface TestImpd {
|
|
8
|
+
readonly url: string;
|
|
9
|
+
readonly client: ImpClient;
|
|
10
|
+
readonly seedImage: (name: string) => Promise<void>;
|
|
11
|
+
readonly startGuest: (impName: string) => Promise<TestGuest>;
|
|
12
|
+
readonly fireTicker: (label: string) => Promise<void>;
|
|
13
|
+
readonly stop: () => Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
export interface TestGuest {
|
|
16
|
+
readonly connect: (port: number) => Promise<Duplex>;
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,60 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@impz/testing",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "4.2.0",
|
|
4
|
+
"description": "A real impd on stand-ins, for Bun tests of code that drives impd through @impz/client",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/zgeoff/impz.git",
|
|
9
|
+
"directory": "packages/testing"
|
|
10
|
+
},
|
|
11
|
+
"type": "module",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"default": "./dist/index.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@balena/dockerignore": "^1.0.2",
|
|
20
|
+
"@better-auth/mcp": "^1.7.7",
|
|
21
|
+
"@better-auth/oauth-provider": "^1.7.7",
|
|
22
|
+
"@bufbuild/protobuf": "^2.16.0",
|
|
23
|
+
"@logtape/logtape": "^2.4.0",
|
|
24
|
+
"@modelcontextprotocol/server": "^2.3.1",
|
|
25
|
+
"@opentelemetry/api": "^1.9.1",
|
|
26
|
+
"@opentelemetry/exporter-metrics-otlp-proto": "^0.223.0",
|
|
27
|
+
"@opentelemetry/exporter-trace-otlp-proto": "^0.223.0",
|
|
28
|
+
"@opentelemetry/resources": "^2.12.0",
|
|
29
|
+
"@opentelemetry/sdk-metrics": "^2.12.0",
|
|
30
|
+
"@opentelemetry/sdk-trace-base": "^2.12.0",
|
|
31
|
+
"@orpc/client": "^1.15.5",
|
|
32
|
+
"@orpc/contract": "^1.15.5",
|
|
33
|
+
"@orpc/server": "^1.15.5",
|
|
34
|
+
"@peculiar/x509": "^1.14.3",
|
|
35
|
+
"@zgeoff/kysely-bun-sqlite": "^0.3.0",
|
|
36
|
+
"acme-client": "^5.4.0",
|
|
37
|
+
"better-auth": "^1.7.7",
|
|
38
|
+
"dns-packet": "^5.6.1",
|
|
39
|
+
"elysia": "^1.4.29",
|
|
40
|
+
"ipaddr.js": "^2.5.0",
|
|
41
|
+
"kysely": "^0.29.5",
|
|
42
|
+
"lru-cache": "^11.5.3",
|
|
43
|
+
"reflect-metadata": "^0.2.2",
|
|
44
|
+
"tar-stream": "^3.2.1",
|
|
45
|
+
"tiny-invariant": "^1.3.3",
|
|
46
|
+
"ts-pattern": "^5.9.0",
|
|
47
|
+
"xstate": "^5.33.2",
|
|
48
|
+
"zod": "^4.6.7",
|
|
49
|
+
"@impz/client": "4.2.0"
|
|
50
|
+
},
|
|
51
|
+
"engines": {
|
|
52
|
+
"bun": ">=1.4.3"
|
|
53
|
+
},
|
|
54
|
+
"files": [
|
|
55
|
+
"dist"
|
|
56
|
+
],
|
|
57
|
+
"publishConfig": {
|
|
58
|
+
"access": "public"
|
|
59
|
+
}
|
|
60
|
+
}
|