diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c064d6b..73a363b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,7 +33,3 @@ jobs: yarn test-storybook:ci-coverage working-directory: examples/vite - - name: Generate code coverage - uses: codecov/codecov-action@v3 - with: - verbose: true diff --git a/examples/vite/.storybook/main.ts b/examples/vite/.storybook/main.ts index 0ea9e0c..567faf0 100644 --- a/examples/vite/.storybook/main.ts +++ b/examples/vite/.storybook/main.ts @@ -1,5 +1,5 @@ export default { - stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"], + stories: ["../src/**/*.stories.@(js|jsx|ts|tsx)"], addons: [ "@storybook/addon-essentials", diff --git a/examples/vite/src/stories/Button.stories.tsx b/examples/vite/src/stories/Button.stories.tsx index f410b98..e0f7cc8 100644 --- a/examples/vite/src/stories/Button.stories.tsx +++ b/examples/vite/src/stories/Button.stories.tsx @@ -1,6 +1,7 @@ import type { StoryFn, Meta } from "@storybook/react"; import { Button } from "./Button"; +import { expect } from "@storybook/test"; // More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export export default { @@ -13,9 +14,7 @@ export default { } as Meta; // More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args -const Template: StoryFn = (args) => ( -