@zitadel/testing 0.7.0 → 0.8.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.
@@ -21,7 +21,11 @@ interface BootstrappedProject {
21
21
  }
22
22
  declare function bootstrapProject(options: BootstrapProjectOptions): Promise<BootstrappedProject>;
23
23
  interface BootServerOptions {
24
- /** TCP port for the instance; defaults to an OS-assigned free port. */
24
+ /**
25
+ * TCP port for the instance. Defaults to an OS-assigned free port; when
26
+ * another process takes it before the server binds, the start is retried on
27
+ * a fresh one. An explicit port is never retried.
28
+ */
25
29
  port?: number;
26
30
  /**
27
31
  * State directory. Defaults to a fresh temp dir that is removed on stop;
@@ -70,4 +74,4 @@ declare function connectZitadel(handle: InstanceHandle): ConnectedZitadel;
70
74
  */
71
75
  declare function startLocalZitadel(options?: StartLocalZitadelOptions): Promise<LocalZitadel>;
72
76
  export { waitForHandshake as a, BootedServer as c, BootstrappedProject as d, bootstrapProject as f, readHandshakeSync as i, bootLocalServer as l, connectZitadel as n, writeHandshake as o, startLocalZitadel as r, BootServerOptions as s, StartLocalZitadelOptions as t, BootstrapProjectOptions as u };
73
- //# sourceMappingURL=index-B9tztG3_.d.mts.map
77
+ //# sourceMappingURL=index-KrNefxOo.d.mts.map
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_src = require("./src-EogQCM5q.cjs");
2
+ const require_src = require("./src-DZ46zEll.cjs");
3
3
  const require_handshake = require("./handshake-BEhxJx4Z.cjs");
4
4
  exports.SESSION_COOKIE_NAME = require_src.SESSION_COOKIE_NAME;
5
5
  exports.applyAppEnvTemplate = require_handshake.applyAppEnvTemplate;
package/dist/index.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { a as waitForHandshake, c as BootedServer, d as BootstrappedProject, f as bootstrapProject, i as readHandshakeSync, l as bootLocalServer, n as connectZitadel, o as writeHandshake, r as startLocalZitadel, s as BootServerOptions, t as StartLocalZitadelOptions, u as BootstrapProjectOptions } from "./index-B9tztG3_.mjs";
1
+ import { a as waitForHandshake, c as BootedServer, d as BootstrappedProject, f as bootstrapProject, i as readHandshakeSync, l as bootLocalServer, n as connectZitadel, o as writeHandshake, r as startLocalZitadel, s as BootServerOptions, t as StartLocalZitadelOptions, u as BootstrapProjectOptions } from "./index-KrNefxOo.mjs";
2
2
  import { _ as SeedUserInput, a as AppEnvTemplate, b as SessionCookie, c as viteAppEnv, d as InstanceHandle, f as LocalZitadel, g as SeedSessionInput, h as PlatformCredentials, i as identity, l as ConnectedZitadel, m as MintedSession, n as browserSessionCookieName, o as applyAppEnvTemplate, p as LocalZitadelRuntime, r as sessionCookieName, s as nextAppEnv, t as SESSION_COOKIE_NAME, u as Identity, v as SeedUsersTemplate, y as SeededUser } from "./session-DueRCvrq.mjs";
3
3
  export { type AppEnvTemplate, type BootServerOptions, type BootedServer, type BootstrapProjectOptions, type BootstrappedProject, type ConnectedZitadel, type Identity, type InstanceHandle, type LocalZitadel, type LocalZitadelRuntime, type MintedSession, type PlatformCredentials, SESSION_COOKIE_NAME, type SeedSessionInput, type SeedUserInput, type SeedUsersTemplate, type SeededUser, type SessionCookie, StartLocalZitadelOptions, applyAppEnvTemplate, bootLocalServer, bootstrapProject, browserSessionCookieName, connectZitadel, identity, nextAppEnv, readHandshakeSync, sessionCookieName, startLocalZitadel, viteAppEnv, waitForHandshake, writeHandshake };
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  import { a as nextAppEnv, i as applyAppEnvTemplate, n as waitForHandshake, o as viteAppEnv, r as writeHandshake, t as readHandshakeSync } from "./handshake-CZWS5b2X.mjs";
2
- import { c as bootLocalServer, i as browserSessionCookieName, n as startLocalZitadel, o as sessionCookieName, r as SESSION_COOKIE_NAME, s as identity, t as connectZitadel, u as bootstrapProject } from "./src-DImgqUUu.mjs";
2
+ import { c as bootLocalServer, i as browserSessionCookieName, n as startLocalZitadel, o as sessionCookieName, r as SESSION_COOKIE_NAME, s as identity, t as connectZitadel, u as bootstrapProject } from "./src-DkwAAu0O.mjs";
3
3
  export { SESSION_COOKIE_NAME, applyAppEnvTemplate, bootLocalServer, bootstrapProject, browserSessionCookieName, connectZitadel, identity, nextAppEnv, readHandshakeSync, sessionCookieName, startLocalZitadel, viteAppEnv, waitForHandshake, writeHandshake };
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_handshake = require("./handshake-BEhxJx4Z.cjs");
3
- const require_src = require("./src-EogQCM5q.cjs");
3
+ const require_src = require("./src-DZ46zEll.cjs");
4
4
  const require_orchestration = require("./orchestration-SELq6dmD.cjs");
5
5
  let node_fs = require("node:fs");
6
6
  let node_url = require("node:url");
@@ -1,5 +1,5 @@
1
1
  import { a as nextAppEnv, i as applyAppEnvTemplate, n as waitForHandshake, o as viteAppEnv } from "./handshake-CZWS5b2X.mjs";
2
- import { a as secureSessionCookie, i as browserSessionCookieName, o as sessionCookieName, r as SESSION_COOKIE_NAME, s as identity, t as connectZitadel } from "./src-DImgqUUu.mjs";
2
+ import { a as secureSessionCookie, i as browserSessionCookieName, o as sessionCookieName, r as SESSION_COOKIE_NAME, s as identity, t as connectZitadel } from "./src-DkwAAu0O.mjs";
3
3
  import { n as HANDSHAKE_ENV, r as SUPERVISOR_CONFIG_ENV, t as APP_RUNNER_CONFIG_ENV } from "./orchestration-Cf4M8lil.mjs";
4
4
  import { existsSync } from "node:fs";
5
5
  import { extname, isAbsolute, join } from "node:path";