Skip to content

Commit 9919f03

Browse files
authored
chore(release): 1.5.2 (#523)
* chore(release): 1.5.2 * test(e2e): stabilize output format checks
1 parent 3834292 commit 9919f03

6 files changed

Lines changed: 17 additions & 21 deletions

File tree

extension/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "OpenCLI",
4-
"version": "1.5.1",
4+
"version": "1.5.2",
55
"description": "Browser automation bridge for the OpenCLI CLI tool. Executes commands in isolated Chrome windows via a local daemon.",
66
"permissions": [
77
"debugger",

extension/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "opencli-extension",
3-
"version": "1.5.1",
3+
"version": "1.5.2",
44
"private": true,
55
"type": "module",
66
"scripts": {

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jackwener/opencli",
3-
"version": "1.5.1",
3+
"version": "1.5.2",
44
"publishConfig": {
55
"access": "public"
66
},

tests/e2e/output-formats.test.ts

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/**
22
* E2E tests for output format rendering.
3-
* Uses hackernews (public, fast) as a stable data source.
3+
* Uses the built-in list command so renderer coverage does not depend on
4+
* external network availability.
45
*/
56

67
import { describe, it, expect } from 'vitest';
@@ -10,19 +11,22 @@ const FORMATS = ['json', 'yaml', 'csv', 'md'] as const;
1011

1112
describe('output formats E2E', () => {
1213
for (const fmt of FORMATS) {
13-
it(`hackernews top -f ${fmt} produces valid output`, async () => {
14-
const { stdout, code } = await runCli(['hackernews', 'top', '--limit', '2', '-f', fmt]);
14+
it(`list -f ${fmt} produces valid output`, async () => {
15+
const { stdout, code } = await runCli(['list', '-f', fmt]);
1516
expect(code).toBe(0);
1617
expect(stdout.trim().length).toBeGreaterThan(0);
1718

1819
if (fmt === 'json') {
1920
const data = parseJsonOutput(stdout);
2021
expect(Array.isArray(data)).toBe(true);
21-
expect(data.length).toBe(2);
22+
expect(data.length).toBeGreaterThan(50);
23+
expect(data[0]).toHaveProperty('command');
24+
expect(data[0]).toHaveProperty('site');
2225
}
2326

2427
if (fmt === 'yaml') {
25-
expect(stdout).toContain('title:');
28+
expect(stdout).toContain('command:');
29+
expect(stdout).toContain('site:');
2630
}
2731

2832
if (fmt === 'csv') {
@@ -33,16 +37,8 @@ describe('output formats E2E', () => {
3337

3438
if (fmt === 'md') {
3539
// Markdown table should have pipe characters
36-
expect(stdout).toContain('|');
40+
expect(stdout).toContain('| command |');
3741
}
3842
}, 30_000);
3943
}
40-
41-
it('list -f csv produces valid csv', async () => {
42-
const { stdout, code } = await runCli(['list', '-f', 'csv']);
43-
expect(code).toBe(0);
44-
const lines = stdout.trim().split('\n');
45-
// Header + many data lines
46-
expect(lines.length).toBeGreaterThan(50);
47-
});
4844
});

0 commit comments

Comments
 (0)