diff --git a/cli/test/unit/shared/skill-name-parser.test.ts b/cli/test/unit/shared/skill-name-parser.test.ts index b73fa9b7..b86771ce 100644 --- a/cli/test/unit/shared/skill-name-parser.test.ts +++ b/cli/test/unit/shared/skill-name-parser.test.ts @@ -1,9 +1,9 @@ -import { describe, it, expect } from 'vitest' +import { describe, test, expect } from 'bun:test' import { parseSkillName } from '../../../src/shared/skill-name-parser' describe('parseSkillName', () => { describe('with namespace--slug format', () => { - it('should parse namespace and slug separated by double dash', () => { + test('should parse namespace and slug separated by double dash', () => { const result = parseSkillName('astroclaw--api-gateway') expect(result).toEqual({ namespace: 'astroclaw', @@ -11,7 +11,7 @@ describe('parseSkillName', () => { }) }) - it('should handle namespace and slug with single dashes', () => { + test('should handle namespace and slug with single dashes', () => { const result = parseSkillName('my-org--my-skill-name') expect(result).toEqual({ namespace: 'my-org', @@ -19,7 +19,7 @@ describe('parseSkillName', () => { }) }) - it('should handle multiple double dashes by using first as separator', () => { + test('should handle multiple double dashes by using first as separator', () => { const result = parseSkillName('namespace--slug--with--dashes') expect(result).toEqual({ namespace: 'namespace', @@ -29,7 +29,7 @@ describe('parseSkillName', () => { }) describe('with slug only format', () => { - it('should use default namespace when no separator present', () => { + test('should use default namespace when no separator present', () => { const result = parseSkillName('api-gateway') expect(result).toEqual({ namespace: 'global', @@ -37,7 +37,7 @@ describe('parseSkillName', () => { }) }) - it('should use custom default namespace when provided', () => { + test('should use custom default namespace when provided', () => { const result = parseSkillName('api-gateway', 'myorg') expect(result).toEqual({ namespace: 'myorg', @@ -45,7 +45,7 @@ describe('parseSkillName', () => { }) }) - it('should handle slug with single dashes', () => { + test('should handle slug with single dashes', () => { const result = parseSkillName('my-skill-name') expect(result).toEqual({ namespace: 'global', @@ -55,7 +55,7 @@ describe('parseSkillName', () => { }) describe('edge cases', () => { - it('should handle separator at start', () => { + test('should handle separator at start', () => { const result = parseSkillName('--api-gateway') expect(result).toEqual({ namespace: 'global', @@ -63,7 +63,7 @@ describe('parseSkillName', () => { }) }) - it('should handle separator at end', () => { + test('should handle separator at end', () => { const result = parseSkillName('astroclaw--') expect(result).toEqual({ namespace: 'global', @@ -71,7 +71,7 @@ describe('parseSkillName', () => { }) }) - it('should handle empty string', () => { + test('should handle empty string', () => { const result = parseSkillName('') expect(result).toEqual({ namespace: 'global', @@ -79,7 +79,7 @@ describe('parseSkillName', () => { }) }) - it('should handle just separator', () => { + test('should handle just separator', () => { const result = parseSkillName('--') expect(result).toEqual({ namespace: 'global',