Skip to content

Commit c5ee90d

Browse files
authored
Test REPL behavior through terminal page objects (#1016)
1 parent fa66064 commit c5ee90d

38 files changed

Lines changed: 14435 additions & 31938 deletions

‎.github/workflows/ci.yml‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ jobs:
8888
# an artifact-and-dependency boundary between jobs that #279 spent its length
8989
# removing.
9090
test-deno:
91-
name: test-deno (${{ matrix.shard }}/15)
91+
name: test-deno (${{ matrix.shard }}/19)
9292
strategy:
9393
fail-fast: false
9494
matrix:
95-
shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
95+
shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
9696
runs-on: ubuntu-latest
9797
steps:
9898
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
@@ -127,7 +127,7 @@ jobs:
127127
run: deno task build:web
128128

129129
- name: Test
130-
run: deno run --allow-all --frozen scripts/runtime-tests.ts deno ${{ matrix.shard }}/15
130+
run: deno run --allow-all --frozen scripts/runtime-tests.ts deno ${{ matrix.shard }}/19
131131

132132
# The same command the release publishes with, minus --dry-run. Catches slow
133133
# types and unresolvable specifiers before they reach a tag.
@@ -604,11 +604,11 @@ jobs:
604604
working-directory: site
605605

606606
test-node:
607-
name: test-node (${{ matrix.shard }}/10)
607+
name: test-node (${{ matrix.shard }}/16)
608608
strategy:
609609
fail-fast: false
610610
matrix:
611-
shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
611+
shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]
612612
runs-on: ubuntu-latest
613613
steps:
614614
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
@@ -646,14 +646,14 @@ jobs:
646646
run: pnpm exec tsc --project tsconfig.node.json --noEmit
647647

648648
- name: Test
649-
run: pnpm test:node ${{ matrix.shard }}/10
649+
run: pnpm test:node ${{ matrix.shard }}/16
650650

651651
test-bun:
652-
name: test-bun (${{ matrix.shard }}/5)
652+
name: test-bun (${{ matrix.shard }}/9)
653653
strategy:
654654
fail-fast: false
655655
matrix:
656-
shard: [1, 2, 3, 4, 5]
656+
shard: [1, 2, 3, 4, 5, 6, 7, 8, 9]
657657
runs-on: ubuntu-latest
658658
steps:
659659
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
@@ -669,7 +669,7 @@ jobs:
669669
- run: bun install
670670

671671
- name: Test
672-
run: bun run test:bun ${{ matrix.shard }}/5
672+
run: bun run test:bun ${{ matrix.shard }}/9
673673

674674
# test:bun never loads packages/cli/src/bun.ts, so it cannot tell whether
675675
# the Bun entrypoint's API.Env providers work. This document drives a

‎packages/cli/src/repl/layout.ts‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,6 @@ const WIDE: ReplTerminalSize = { columns: 160, rows: 36 };
210210
* it offers changes while the two rows around it do not.
211211
*/
212212
export const FOOTER_ROWS = 7;
213-
/** The History band's own five rows. */
214-
export { HISTORY_ROWS } from "./history-rail.ts";
215-
216213
/** Five, at every size — imported for this module's own layout. */
217214
import { HISTORY_ROWS } from "./history-rail.ts";
218215

@@ -470,11 +467,6 @@ export function rowProps(width: number | undefined): ReplBoxProps {
470467
};
471468
}
472469

473-
/** One row of a region whose width is not yet known. */
474-
export const ROW_PROPS: ReplBoxProps = Object.freeze({
475-
layout: Object.freeze({ width: grow(), height: fixed(1) }),
476-
});
477-
478470
/** A control of the action row: as wide as its own label. */
479471
export const CONTROL_PROPS: ReplBoxProps = Object.freeze({
480472
layout: Object.freeze({ width: fit(), height: fixed(1) }),

‎packages/cli/tests/fixtures/repl/appearance.ts‎

Lines changed: 0 additions & 217 deletions
This file was deleted.

0 commit comments

Comments
 (0)