-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
38 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,16 @@ | ||
function stories() {} | ||
import type { Meta, StoryObj } from '@storybook/react' | ||
|
||
import { ResourceName } from './ResourceName' | ||
|
||
const meta: Meta<typeof ResourceName> = { | ||
component: ResourceName | ||
} | ||
|
||
export default meta | ||
type Story = StoryObj<typeof ResourceName> | ||
|
||
export const Primary: Story = { | ||
args: { | ||
message: "I'm a component called ResourceName" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
function tests() {} | ||
import { render, screen } from '@testing-library/react' | ||
import { describe, it, expect } from 'vitest' | ||
|
||
describe('ResourceName', () => { | ||
it("should work's properly", async () => { | ||
render(<ResourceName message="Hello Clingon!" />) | ||
|
||
expect(await screen.findByText('Hello Clingon!')) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# ResourceName | ||
|
||
> My hok doc | ||
> My hook doc | ||
- Test generate with MD file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters