Skip to content

Commit

Permalink
rename tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Feb 7, 2024
1 parent fcf317f commit a3b2957
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 124 deletions.
123 changes: 0 additions & 123 deletions code/renderers/svelte/src/__test__/composeStories/internals.test.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { it, expect, vi, describe } from 'vitest';
import { render, screen } from '@testing-library/svelte';
import { expectTypeOf } from 'expect-type';
import type { Meta } from '../../';
import type { Meta } from '../..';
import * as stories from './Button.stories';
// import type Button from './Button.svelte';
import Button from './Button.svelte';
Expand Down Expand Up @@ -114,3 +114,19 @@ it('reuses args from composed story', () => {
// }).toMatchTypeOf<ComposeStoriesParam>();
// });
// });

// // Batch snapshot testing
// const testCases = Object.values(composeStories(stories)).map((Story) => [
// Story.storyName,
// Story,
// ]);
// it.each(testCases)('Renders %s story', async (_storyName, Story) => {
// if (typeof Story === 'string' || _storyName === 'CSF2StoryWithParamsAndDecorator') {
// return;
// }

// await new Promise((resolve) => setTimeout(resolve, 0));

// const tree = await render(Story());
// expect(tree.baseElement).toMatchSnapshot();
// });

0 comments on commit a3b2957

Please sign in to comment.