Skip to content

Commit 23d02ff

Browse files
committed
ensure tests pass
1 parent b19466d commit 23d02ff

File tree

4 files changed

+26
-12
lines changed

4 files changed

+26
-12
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# mycoder
22

3+
## 0.0.18
4+
5+
### Patch Changes
6+
7+
- better fix for linux cli that still hides deprecations
8+
39
## 0.0.17
410

511
### Patch Changes

bin/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#!/usr/bin/env node
2-
import "../dist/index.js";
1+
#!/usr/bin/env -S node --no-deprecation
2+
import "../dist/index.js";

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mycoder",
33
"description": "A command line tool using agent that can do arbitrary tasks, including coding tasks",
4-
"version": "0.0.17",
4+
"version": "0.0.18",
55
"type": "module",
66
"bin": "./bin/cli.js",
77
"main": "./dist/index.js",

tests/cli.test.ts

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1-
import { expect, test, describe } from 'vitest'
2-
import { execSync } from 'child_process'
3-
import { version } from '../package.json'
1+
import { expect, test, describe } from "vitest";
2+
import { execSync } from "child_process";
3+
import { version } from "../package.json";
44

5-
describe('CLI', () => {
6-
test('version command outputs correct version', () => {
7-
const output = execSync('node ./bin/cli.js --version').toString()
8-
expect(output.trim()).toContain(version)
9-
})
10-
})
5+
describe("CLI", () => {
6+
test("version command outputs correct version", () => {
7+
const output = execSync("npx mycoder --version").toString();
8+
expect(output.trim()).toContain(version);
9+
expect(output.trim()).not.toContain("AI-powered coding assistant");
10+
});
11+
12+
test("-h command outputs help", () => {
13+
const output = execSync("npx mycoder -h").toString();
14+
expect(output.trim()).toContain("Commands:");
15+
expect(output.trim()).toContain("Positionals:");
16+
expect(output.trim()).toContain("Options:");
17+
});
18+
});

0 commit comments

Comments
 (0)