UNPKG

@nx/react

Version:

The React plugin for Nx contains executors and generators for managing React applications and libraries within an Nx workspace. It provides: - Integration with libraries such as Jest, Vitest, Playwright, Cypress, and Storybook. - Generators for applica

12 lines (11 loc) 329 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getComponentTests = getComponentTests; function getComponentTests(schema) { return ` it('should render successfully', () => { const { baseElement } = render(<${schema.className} />); expect(baseElement).toBeTruthy(); }); `; }