UNPKG

compass-docgen

Version:

This is a package that will help you to create your documentation for yours components

13 lines (12 loc) 552 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const jsx_runtime_1 = require("react/jsx-runtime"); const react_1 = require("@testing-library/react"); const __COMPONENT_NAME__1 = require("./__COMPONENT_NAME__"); describe('__COMPONENT_NAME__ test', () => { it('renders the component', () => { const { getByText } = (0, react_1.render)((0, jsx_runtime_1.jsx)(__COMPONENT_NAME__1.__COMPONENT_NAME__, {})); const text = getByText('__COMPONENT_NAME__ works!'); expect(text).toBeTruthy(); }); });