@elench/testkit 0.1.140 → 0.1.142
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/lib/config-api/index.d.ts +12 -0
- package/lib/config-api/index.mjs +1 -0
- package/lib/local/kiln-driver.mjs +1 -0
- package/node_modules/@elench/next-analysis/package.json +1 -1
- package/node_modules/@elench/testkit-bridge/package.json +2 -2
- package/node_modules/@elench/testkit-protocol/package.json +1 -1
- package/node_modules/@elench/ts-analysis/package.json +1 -1
- package/package.json +5 -5
|
@@ -311,6 +311,7 @@ export interface PostgresResourceConfig {
|
|
|
311
311
|
data?: "reuse" | "reset" | "rebuild";
|
|
312
312
|
database?: string;
|
|
313
313
|
extensions?: string[];
|
|
314
|
+
image?: string;
|
|
314
315
|
password?: string;
|
|
315
316
|
port?: number;
|
|
316
317
|
user?: string;
|
|
@@ -652,6 +653,17 @@ export declare const database: {
|
|
|
652
653
|
envFiles?: string[];
|
|
653
654
|
}
|
|
654
655
|
): ServiceConfig;
|
|
656
|
+
fixture(
|
|
657
|
+
options?: Omit<ResourceDatabaseConfig, "provider" | "template"> & {
|
|
658
|
+
inputs?: string[];
|
|
659
|
+
migrate?: TemplateLifecycleStepConfig | TemplateLifecycleStepConfig[] | string | string[];
|
|
660
|
+
seed?: TemplateLifecycleStepConfig | TemplateLifecycleStepConfig[] | string | string[];
|
|
661
|
+
template?: DatabaseTemplateOptions;
|
|
662
|
+
verify?: TemplateLifecycleStepConfig | TemplateLifecycleStepConfig[] | string | string[];
|
|
663
|
+
discovery?: DiscoveryConfig;
|
|
664
|
+
envFiles?: string[];
|
|
665
|
+
}
|
|
666
|
+
): ServiceConfig;
|
|
655
667
|
};
|
|
656
668
|
export declare const resource: {
|
|
657
669
|
postgres(options?: Omit<PostgresResourceConfig, "kind">): PostgresResourceConfig;
|
package/lib/config-api/index.mjs
CHANGED
|
@@ -38,6 +38,7 @@ function postgresResource(options = {}) {
|
|
|
38
38
|
return {
|
|
39
39
|
kind: "postgres",
|
|
40
40
|
version: options.version || "16",
|
|
41
|
+
...(options.image ? { image: options.image } : {}),
|
|
41
42
|
database: options.database || options.name || "app",
|
|
42
43
|
user: options.user || "app",
|
|
43
44
|
...(options.password ? { password: options.password } : {}),
|
|
@@ -266,6 +266,7 @@ async function ensureResources(client, environment, network) {
|
|
|
266
266
|
autostart: Boolean(resource.vm?.autostart || resource.autostart),
|
|
267
267
|
postgres: {
|
|
268
268
|
version: resource.version || "16",
|
|
269
|
+
...(resource.image ? { image: resource.image } : {}),
|
|
269
270
|
database: resource.database || name,
|
|
270
271
|
user: resource.user || "app",
|
|
271
272
|
...(resource.password ? { password: resource.password } : {}),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elench/testkit-bridge",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.142",
|
|
4
4
|
"description": "Browser bridge helpers for testkit",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@elench/testkit-protocol": "0.1.
|
|
25
|
+
"@elench/testkit-protocol": "0.1.142"
|
|
26
26
|
},
|
|
27
27
|
"private": false
|
|
28
28
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elench/testkit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.142",
|
|
4
4
|
"description": "Assistant-first CLI for running, inspecting, and debugging local testkit suites",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"workspaces": [
|
|
@@ -98,10 +98,10 @@
|
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
100
|
"@babel/code-frame": "^7.29.0",
|
|
101
|
-
"@elench/next-analysis": "0.1.
|
|
102
|
-
"@elench/testkit-bridge": "0.1.
|
|
103
|
-
"@elench/testkit-protocol": "0.1.
|
|
104
|
-
"@elench/ts-analysis": "0.1.
|
|
101
|
+
"@elench/next-analysis": "0.1.142",
|
|
102
|
+
"@elench/testkit-bridge": "0.1.142",
|
|
103
|
+
"@elench/testkit-protocol": "0.1.142",
|
|
104
|
+
"@elench/ts-analysis": "0.1.142",
|
|
105
105
|
"@oclif/core": "^4.10.6",
|
|
106
106
|
"@playwright/test": "^1.52.0",
|
|
107
107
|
"esbuild": "^0.25.11",
|