UNPKG

ruch

Version:

Revolutionary React TypeScript CLI with hexagonal architecture & AI-powered development assistance. Create maintainable, scalable applications with domain-driven design and integrated AI tooling.

18 lines (17 loc) 709 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getUiTestTemplate = void 0; const getUiTestTemplate = (domainName) => { const capitalizedName = domainName.charAt(0).toUpperCase() + domainName.slice(1); return `import { render, screen } from '@testing-library/react'; import { describe, it, expect } from 'vitest'; import { ${capitalizedName}View } from './${capitalizedName}View'; describe('${capitalizedName}View', () => { it('should render', () => { render(<${capitalizedName}View />); expect(screen.getByText('${capitalizedName}')).toBeInTheDocument(); }); });`; }; exports.getUiTestTemplate = getUiTestTemplate; //# sourceMappingURL=ui.test.js.map