Initial Phoenix Sankofa Cloud setup

- Complete project structure with Next.js frontend
- GraphQL API backend with Apollo Server
- Portal application with NextAuth
- Crossplane Proxmox provider
- GitOps configurations
- CI/CD pipelines
- Testing infrastructure (Vitest, Jest, Go tests)
- Error handling and monitoring
- Security hardening
- UI component library
- Documentation
This commit is contained in:
defiQUG
2025-11-28 12:54:33 -08:00
commit 6f28146ac3
229 changed files with 43136 additions and 0 deletions

22
src/lib/utils.test.ts Normal file
View File

@@ -0,0 +1,22 @@
import { describe, it, expect } from 'vitest'
import { cn } from './utils'
describe('cn utility', () => {
it('should merge class names', () => {
expect(cn('foo', 'bar')).toBe('foo bar')
})
it('should handle conditional classes', () => {
expect(cn('foo', false && 'bar', 'baz')).toBe('foo baz')
})
it('should merge Tailwind classes correctly', () => {
expect(cn('p-4 p-2')).toBe('p-2')
})
it('should handle empty inputs', () => {
expect(cn()).toBe('')
expect(cn('')).toBe('')
})
})