schafott-cli
Version:
Scaffold CLI is a command line tool to generate scaffolds for your projects. It takes away the pain of creating the same files and folders over and over again for every new library project you start. Also it comes with ready-to-use configurations for Type
2 lines (1 loc) • 491 B
TypeScript
export declare const buttonTestCode = "\n/**\n * @jest-environment jsdom\n */\nimport { render, screen } from '@testing-library/react';\nimport '@testing-library/jest-dom';\nimport { Button } from './components/Button';\nimport React from 'react';\n\ntest('loads and displays Hello', async () => {\n // ARRANGE\n render(<Button label=\"Hello\" />);\n\n // ACT\n await screen.findByRole('button');\n\n // ASSERT\n expect(screen.getByRole('button')).toHaveTextContent('Hello');\n});\n";