Skip to content

Commit

Permalink
chore: fix component generator
Browse files Browse the repository at this point in the history
  • Loading branch information
benfurber committed Jun 13, 2024
1 parent b34ce6e commit bdd7780
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { render } from '../tests/utils'
import { render } from '../test/utils'
import { Default } from './{{ComponentName}}.stories'
import type { {{ComponentName}}Props } from './{{ComponentName}}'
import type { IProps } from './{{ComponentName}}'

describe('{{ComponentName}}', () => {
it('validates the component behaviour', () => {
const { getByText } = render(
<Default {...(Default.args as {{ComponentName}}Props)} />,
<Default {...(Default.args as IProps)} />,
)

expect(getByText('{{ComponentName}}')).toBeInTheDocument();
Expand Down
4 changes: 2 additions & 2 deletions packages/components/scripts/templates/{componentName}.tsx.mst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export interface {{ComponentName}}Props {}
export interface IProps {}

export const {{ComponentName}} = (props: {{ComponentName}}Props) => {
export const {{ComponentName}} = (props: IProps) => {
return <>{{ComponentName}}</>
}

0 comments on commit bdd7780

Please sign in to comment.