testingterm 0.0.1 → 0.0.3

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.
@@ -446,7 +446,7 @@ var Terminal = class _Terminal {
446
446
  await this.wait({ idle: ms }, options, `wait for ${ms}ms of quiet`);
447
447
  }
448
448
  // fixme: placeholder copy
449
- /** Wait until the screen has not changed for `ms` milliseconds. Useful after animations and spinners. */
449
+ /** Wait until the screen (text, colors, cursor and kitty graphics) has not changed for `ms` milliseconds. Useful after animations and spinners. */
450
450
  async waitForStable(ms = 150, options = {}) {
451
451
  await this.wait({ stable: ms }, options, `wait for the screen to settle for ${ms}ms`);
452
452
  }
@@ -186,7 +186,7 @@ Conditions:
186
186
  --regex <pattern> A regex matches the screen
187
187
  --gone <text> The text is no longer on screen
188
188
  --idle <ms> The program printed nothing for this long
189
- --stable <ms> The screen did not change for this long
189
+ --stable <ms> The screen, including images, did not change for this long
190
190
  --title <text> The title contains the text
191
191
  --exit The program exited (prints the exit code)
192
192
  --scrollback Search the whole history, not just the screen
@@ -2,7 +2,7 @@ import {
2
2
  defaultWorkers,
3
3
  evalFile,
4
4
  runFiles
5
- } from "./chunk-YHQYNBAN.js";
5
+ } from "./chunk-VFGDSQFW.js";
6
6
  import "./chunk-INTJPVJZ.js";
7
7
  import "./chunk-YFGNBX2I.js";
8
8
  import {
package/dist/cli/main.js CHANGED
@@ -6,7 +6,7 @@ module.enableCompileCache?.();
6
6
  var argv = process.argv.slice(2);
7
7
  var command = argv[0];
8
8
  async function main() {
9
- const { commandHelp, rootHelp } = await import("../chunks/help-I5WIJHZM.js");
9
+ const { commandHelp, rootHelp } = await import("../chunks/help-LZQLUFX7.js");
10
10
  if (!command || command === "help" || command === "--help" || command === "-h") {
11
11
  const topic = command === "help" ? argv[1] : void 0;
12
12
  process.stdout.write(topic && commandHelp(topic) || rootHelp());
@@ -36,7 +36,7 @@ async function main() {
36
36
  const args = new Args(rest);
37
37
  switch (command) {
38
38
  case "run":
39
- return await (await import("../chunks/run-RNFQMMXD.js")).runCommand(args);
39
+ return await (await import("../chunks/run-A3LMA6YX.js")).runCommand(args);
40
40
  case "setup":
41
41
  return await (await import("../chunks/setup-WIZULKES.js")).setupCommand(args);
42
42
  case "upgrade":
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  Terminal,
5
5
  normalizeLaunch,
6
6
  test
7
- } from "./chunks/chunk-YHQYNBAN.js";
7
+ } from "./chunks/chunk-VFGDSQFW.js";
8
8
  import {
9
9
  CAPABILITY_PRESETS
10
10
  } from "./chunks/chunk-INTJPVJZ.js";
@@ -87,7 +87,7 @@ export declare class Terminal {
87
87
  waitForGone(text: string, options?: WaitOptions): Promise<void>;
88
88
  /** Wait until the program has printed nothing for `ms` milliseconds. */
89
89
  waitForIdle(ms?: number, options?: WaitOptions): Promise<void>;
90
- /** Wait until the screen has not changed for `ms` milliseconds. Useful after animations and spinners. */
90
+ /** Wait until the screen (text, colors, cursor and kitty graphics) has not changed for `ms` milliseconds. Useful after animations and spinners. */
91
91
  waitForStable(ms?: number, options?: WaitOptions): Promise<void>;
92
92
  /** Wait until the window title contains `title`. */
93
93
  waitForTitle(title: string, options?: WaitOptions): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testingterm",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "Test terminal apps: drive a real terminal, read its state, and capture screenshots, videos and profiles",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -23,7 +23,7 @@
23
23
  "./package.json": "./package.json"
24
24
  },
25
25
  "bin": {
26
- "testingterm": "./dist/cli/main.js"
26
+ "testingterm": "dist/cli/main.js"
27
27
  },
28
28
  "files": [
29
29
  "dist",
@@ -35,9 +35,9 @@
35
35
  "zod": "^4.6.7"
36
36
  },
37
37
  "optionalDependencies": {
38
- "@zenbu-labs/testingterm-darwin-arm64": "0.0.1",
39
- "@zenbu-labs/testingterm-darwin-x64": "0.0.1",
40
- "@zenbu-labs/testingterm-linux-x64": "0.0.1",
41
- "@zenbu-labs/testingterm-linux-arm64": "0.0.1"
38
+ "@zenbu-labs/testingterm-darwin-arm64": "0.0.3",
39
+ "@zenbu-labs/testingterm-darwin-x64": "0.0.3",
40
+ "@zenbu-labs/testingterm-linux-x64": "0.0.3",
41
+ "@zenbu-labs/testingterm-linux-arm64": "0.0.3"
42
42
  }
43
43
  }
@@ -82,8 +82,8 @@ With one terminal running, commands use it; with several, pass `--id <id>`
82
82
  ## Rules that keep tests reliable
83
83
 
84
84
  - Never sleep. Wait for what you expect: `waitForText` / `--text`, `--gone`,
85
- `waitForStable(ms)` / `--stable` after animations and spinners, `--idle` for
86
- output to stop, `waitForExit` / `--exit`.
85
+ `waitForStable(ms)` / `--stable` after animations and spinners (kitty graphics
86
+ changes count too), `--idle` for output to stop, `waitForExit` / `--exit`.
87
87
  - `expect(term)` assertions retry until they pass or time out (default 5s), so
88
88
  they never race the program.
89
89
  - `getByText()` is strict: if the text appears more than once it errors; pick