Skip to content

Commit

Permalink
Add a test for using storybook/test in vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Jan 31, 2024
1 parent 08800fe commit 0f3d22c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/lib/test/src/index.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { it } from 'vitest';
import { expect, fn } from '@storybook/test';

it('storybook expect and fn can be used in vitest test', () => {
const spy = fn();
spy(1);
expect(spy).toHaveBeenCalledWith(1);
});

0 comments on commit 0f3d22c

Please sign in to comment.