Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions examples/web-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@tailwindcss/postcss": "^4.2.2",
"@tailwindcss/vite": "^4.2.2",
"@tailwindcss/postcss": "^4.2.4",
"@tailwindcss/vite": "^4.2.4",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vercel/node": "^5.7.10",
"@vercel/node": "^5.7.15",
"@vitejs/plugin-react": "^6.0.1",
"autoprefixer": "^10.5.0",
"eslint": "^10.2.0",
"eslint-plugin-react-hooks": "^7.1.0",
"eslint": "^10.2.1",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-refresh": "^0.5.2",
"globals": "^17.4.0",
"postcss": "^8.5.10",
"tailwindcss": "^4.2.2",
"postcss": "^8.5.13",
"tailwindcss": "^4.2.4",
"typescript": "~5.9.3",
"typescript-eslint": "^8.58.2",
"vite": "^8.0.8",
"typescript-eslint": "^8.59.1",
"vite": "^8.0.10",
"vite-tsconfig-paths": "^6.1.1"
}
}
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,24 +150,24 @@
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@types/ws": "^8.5.11",
"@typescript-eslint/eslint-plugin": "^8.58.2",
"@typescript-eslint/parser": "^8.58.2",
"@vitest/coverage-v8": "^4.1.4",
"@typescript-eslint/eslint-plugin": "^8.59.1",
"@typescript-eslint/parser": "^8.59.1",
"@vitest/coverage-v8": "^4.1.5",
"@vitest/eslint-plugin": "^1.6.16",
"@vitest/ui": "^4.1.4",
"@vitest/ui": "^4.1.5",
"dotenv": "^17.4.2",
"eslint": "^10.2.0",
"eslint": "^10.2.1",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-n": "^17.24.0",
"eslint-plugin-prettier": "^5.5.5",
"eslint-plugin-react-hooks": "^7.1.0",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-unicorn": "^64.0.0",
"execa": "^9.6.1",
"fs-extra": "^11.3.4",
"get-port": "^7.2.0",
"globals": "^17.5.0",
"http-server": "^14.1.1",
"nock": "^14.0.12",
"nock": "^14.0.14",
"node-pty": "^1.1.0",
"oclif": "^4.22.98",
"playwright": "^1.59.1",
Expand All @@ -177,7 +177,7 @@
"strip-ansi": "^7.2.0",
"ts-node": "11.0.0-beta.1",
"typescript": "^5.9.3",
"vitest": "^4.1.4"
"vitest": "^4.1.5"
},
"engines": {
"node": ">=22.0.0"
Expand Down
6 changes: 3 additions & 3 deletions packages/react-web-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.1",
"@vitest/ui": "^4.1.4",
"@vitest/ui": "^4.1.5",
"eslint-plugin-react": "^7.37.5",
"lucide-react": "^1.8.0",
"react": "^19.2.5",
"react-dom": "^19.2.5",
"tsup": "^8.5.1",
"typescript": "^5.9.3",
"vite": "8.0.8",
"vitest": "^4.1.4"
"vite": "8.0.10",
"vitest": "^4.1.5"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/react-web-cli/src/AblyCliTerminal.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@
expect(onConnectionStatusChangeMock).toHaveBeenCalledWith("disconnected");
});

test.skip("shows installation tip after 6 seconds during connection attempts", async () => {

Check warning on line 771 in packages/react-web-cli/src/AblyCliTerminal.test.tsx

View workflow job for this annotation

GitHub Actions / setup

Disabled test - if you want to skip a test temporarily, use .todo() instead

Check warning on line 771 in packages/react-web-cli/src/AblyCliTerminal.test.tsx

View workflow job for this annotation

GitHub Actions / e2e-cli

Disabled test - if you want to skip a test temporarily, use .todo() instead

Check warning on line 771 in packages/react-web-cli/src/AblyCliTerminal.test.tsx

View workflow job for this annotation

GitHub Actions / test

Disabled test - if you want to skip a test temporarily, use .todo() instead
// SKIPPED: This test has timing issues with fake timers in CI environments
// The 6-second delay doesn't advance consistently with vi.advanceTimersByTime
vi.useFakeTimers();
Expand Down Expand Up @@ -812,7 +812,7 @@

// Provide countdown callback and verify it's hooked
const callback = vi.mocked(GlobalReconnect.setCountdownCallback).mock
.calls[0][0] as (remaining: number) => void;
.calls[0][0];
act(() => {
callback(2000);
});
Expand All @@ -824,7 +824,7 @@
});
});

test.skip("shows installation tip during reconnection after 6 seconds", async () => {

Check warning on line 827 in packages/react-web-cli/src/AblyCliTerminal.test.tsx

View workflow job for this annotation

GitHub Actions / setup

Disabled test - if you want to skip a test temporarily, use .todo() instead

Check warning on line 827 in packages/react-web-cli/src/AblyCliTerminal.test.tsx

View workflow job for this annotation

GitHub Actions / e2e-cli

Disabled test - if you want to skip a test temporarily, use .todo() instead

Check warning on line 827 in packages/react-web-cli/src/AblyCliTerminal.test.tsx

View workflow job for this annotation

GitHub Actions / test

Disabled test - if you want to skip a test temporarily, use .todo() instead
// SKIPPED: This test has timing issues with fake timers in CI environments
// The 6-second delay doesn't advance consistently with vi.advanceTimersByTime
vi.useFakeTimers();
Expand Down Expand Up @@ -907,7 +907,7 @@
expect(onConnectionStatusChangeMock).toHaveBeenCalledWith("connecting");
});

test.skip("manual reconnect resets attempt counter after max attempts reached - skipped due to CI timing issues", async () => {

Check warning on line 910 in packages/react-web-cli/src/AblyCliTerminal.test.tsx

View workflow job for this annotation

GitHub Actions / setup

Disabled test - if you want to skip a test temporarily, use .todo() instead

Check warning on line 910 in packages/react-web-cli/src/AblyCliTerminal.test.tsx

View workflow job for this annotation

GitHub Actions / e2e-cli

Disabled test - if you want to skip a test temporarily, use .todo() instead

Check warning on line 910 in packages/react-web-cli/src/AblyCliTerminal.test.tsx

View workflow job for this annotation

GitHub Actions / test

Disabled test - if you want to skip a test temporarily, use .todo() instead
// SKIPPED: This test has timing issues in CI environments
// Manual reconnect state transitions don't complete reliably with mocked timers
// Set up max attempts reached state
Expand Down Expand Up @@ -1208,7 +1208,7 @@
);
});

test.skip("connection timeout triggers error after 30 seconds", async () => {

Check warning on line 1211 in packages/react-web-cli/src/AblyCliTerminal.test.tsx

View workflow job for this annotation

GitHub Actions / setup

Disabled test - if you want to skip a test temporarily, use .todo() instead

Check warning on line 1211 in packages/react-web-cli/src/AblyCliTerminal.test.tsx

View workflow job for this annotation

GitHub Actions / e2e-cli

Disabled test - if you want to skip a test temporarily, use .todo() instead

Check warning on line 1211 in packages/react-web-cli/src/AblyCliTerminal.test.tsx

View workflow job for this annotation

GitHub Actions / test

Disabled test - if you want to skip a test temporarily, use .todo() instead
// SKIPPED: This test has timing issues with fake timers
// The 30-second timeout doesn't trigger consistently with vi.advanceTimersByTime
vi.useFakeTimers();
Expand Down Expand Up @@ -1611,7 +1611,7 @@
setItemMock.mockRestore();
});

test.skip("prompt detection correctly handles ANSI color codes", async () => {

Check warning on line 1614 in packages/react-web-cli/src/AblyCliTerminal.test.tsx

View workflow job for this annotation

GitHub Actions / setup

Disabled test - if you want to skip a test temporarily, use .todo() instead

Check warning on line 1614 in packages/react-web-cli/src/AblyCliTerminal.test.tsx

View workflow job for this annotation

GitHub Actions / e2e-cli

Disabled test - if you want to skip a test temporarily, use .todo() instead

Check warning on line 1614 in packages/react-web-cli/src/AblyCliTerminal.test.tsx

View workflow job for this annotation

GitHub Actions / test

Disabled test - if you want to skip a test temporarily, use .todo() instead
// SKIPPED: This test depends on React fiber internal structure
// React's internal structure is not stable across versions and breaks this test
// Create a mock component and socket
Expand Down Expand Up @@ -1649,7 +1649,7 @@
expect(instance.isSessionActive).toBe(true);
});

test.skip("onConnectionStatusChange only reports status for the primary terminal in split-screen mode", async () => {

Check warning on line 1652 in packages/react-web-cli/src/AblyCliTerminal.test.tsx

View workflow job for this annotation

GitHub Actions / setup

Disabled test - if you want to skip a test temporarily, use .todo() instead

Check warning on line 1652 in packages/react-web-cli/src/AblyCliTerminal.test.tsx

View workflow job for this annotation

GitHub Actions / e2e-cli

Disabled test - if you want to skip a test temporarily, use .todo() instead

Check warning on line 1652 in packages/react-web-cli/src/AblyCliTerminal.test.tsx

View workflow job for this annotation

GitHub Actions / test

Disabled test - if you want to skip a test temporarily, use .todo() instead
// SKIPPED: This test verifies implementation details that are subject to change
// Core functionality is covered by other unit and integration tests
// The environment is not stable enough for this internal implementation test
Expand Down
4 changes: 1 addition & 3 deletions packages/react-web-cli/src/AblyCliTerminal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3053,9 +3053,7 @@ const AblyCliTerminalInner = (
secondaryTerm.current.writeln(
`\r\n--- ${message.payload === "error" ? "Error" : "Session Ended (from server)"}: ${reason} ---`,
);
updateSecondaryConnectionStatus(
message.payload as ConnectionStatus,
);
updateSecondaryConnectionStatus(message.payload);

if (
secondaryTerm.current &&
Expand Down
Loading
Loading