@vibedx/vibekit 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +368 -0
- package/assets/config.yml +35 -0
- package/assets/default.md +47 -0
- package/assets/instructions/README.md +46 -0
- package/assets/instructions/claude.md +83 -0
- package/assets/instructions/codex.md +19 -0
- package/index.js +106 -0
- package/package.json +90 -0
- package/src/commands/close/index.js +66 -0
- package/src/commands/close/index.test.js +235 -0
- package/src/commands/get-started/index.js +138 -0
- package/src/commands/get-started/index.test.js +246 -0
- package/src/commands/init/index.js +51 -0
- package/src/commands/init/index.test.js +159 -0
- package/src/commands/link/index.js +395 -0
- package/src/commands/link/index.test.js +28 -0
- package/src/commands/lint/index.js +657 -0
- package/src/commands/lint/index.test.js +569 -0
- package/src/commands/list/index.js +131 -0
- package/src/commands/list/index.test.js +153 -0
- package/src/commands/new/index.js +305 -0
- package/src/commands/new/index.test.js +256 -0
- package/src/commands/refine/index.js +741 -0
- package/src/commands/refine/index.test.js +28 -0
- package/src/commands/review/index.js +957 -0
- package/src/commands/review/index.test.js +193 -0
- package/src/commands/start/index.js +180 -0
- package/src/commands/start/index.test.js +88 -0
- package/src/commands/unlink/index.js +123 -0
- package/src/commands/unlink/index.test.js +22 -0
- package/src/utils/arrow-select.js +233 -0
- package/src/utils/cli.js +489 -0
- package/src/utils/cli.test.js +9 -0
- package/src/utils/git.js +146 -0
- package/src/utils/git.test.js +330 -0
- package/src/utils/index.js +193 -0
- package/src/utils/index.test.js +375 -0
- package/src/utils/prompts.js +47 -0
- package/src/utils/prompts.test.js +165 -0
- package/src/utils/test-helpers.js +492 -0
- package/src/utils/ticket.js +423 -0
- package/src/utils/ticket.test.js +190 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { describe, it, expect } from '@jest/globals';
|
|
2
|
+
import refineCommand from './index.js';
|
|
3
|
+
|
|
4
|
+
describe('refine command', () => {
|
|
5
|
+
describe('basic validation', () => {
|
|
6
|
+
it('should validate that refine command exists and is callable', () => {
|
|
7
|
+
// This test validates the command structure without executing interactive parts
|
|
8
|
+
expect(typeof refineCommand).toBe('function');
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
it('should be an async function', () => {
|
|
12
|
+
// Validates the command is properly structured as async
|
|
13
|
+
expect(refineCommand.constructor.name).toBe('AsyncFunction');
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
it('should accept arguments parameter', () => {
|
|
17
|
+
// Validates the command signature
|
|
18
|
+
expect(refineCommand.length).toBe(1); // Takes one parameter (args array)
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
// Note: The refine command is complex and interactive, requiring:
|
|
23
|
+
// - Mocking Claude Code SDK checks
|
|
24
|
+
// - Mocking external API calls
|
|
25
|
+
// - Mocking interactive CLI prompts
|
|
26
|
+
// - Testing actual ticket content refinement
|
|
27
|
+
// Full testing would require complex async/interactive/AI mocking
|
|
28
|
+
});
|