Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test(web-host): add e2e tests for tee -a
  • Loading branch information
topheman committed Aug 20, 2025
commit e02db13e72d41d72560dd8c828c8019bc25a903b
15 changes: 15 additions & 0 deletions packages/web-host/tests/repl-plugins.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,18 @@ test("tee README.md", async ({ page }) => {
expectStdout: "Some Content",
});
});

test("tee -a output.txt", async ({ page }) => {
await page.goto("/#repl");
await fillAndSubmitCommand(page, "echo Some Initial Content");
await fillAndSubmitCommand(page, "tee output.txt", {
expectStdout: "Some Initial Content",
});
await fillAndSubmitCommand(page, "echo Some More Content");
await fillAndSubmitCommand(page, "tee -a output.txt", {
expectStdout: "Some More Content",
});
await fillAndSubmitCommand(page, "cat output.txt", {
expectStdout: "Some Initial Content\nSome More Content",
});
});
Loading