Skip to main content
Glama
isFrontendComponent.test.ts1.08 kB
import { isFrontendComponent } from './isFrontendComponent' describe('isFrontendComponent', () => { it('should return true for frontend-related components', () => { expect(isFrontendComponent('Frontend')).toBe(true) expect(isFrontendComponent('frontend-team')).toBe(true) expect(isFrontendComponent('web-frontend')).toBe(true) }) it('should return true for UI-related components', () => { expect(isFrontendComponent('UI')).toBe(true) expect(isFrontendComponent('ui-components')).toBe(true) expect(isFrontendComponent('design-ui')).toBe(true) }) it('should return true for interface-related components', () => { expect(isFrontendComponent('Interface')).toBe(true) expect(isFrontendComponent('user-interface')).toBe(true) expect(isFrontendComponent('web-interface')).toBe(true) }) it('should return false for unrelated components', () => { expect(isFrontendComponent('Backend')).toBe(false) expect(isFrontendComponent('API')).toBe(false) expect(isFrontendComponent('Database')).toBe(false) expect(isFrontendComponent('DevOps')).toBe(false) }) })

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tbreeding/jira-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server