Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] some stories are visible in the index but not in Vitest, or vice versa #29771

Closed
Tracked by #29770 ...
vanessayuenn opened this issue Dec 2, 2024 · 0 comments · Fixed by #29367
Closed
Tracked by #29770 ...

[Bug] some stories are visible in the index but not in Vitest, or vice versa #29771

vanessayuenn opened this issue Dec 2, 2024 · 0 comments · Fixed by #29367

Comments

@vanessayuenn
Copy link
Contributor

stories glob

Currently, we rely on the include property of the Vitest config file e.g.

// vitest.workspace.js
export default defineWorkspace([
	{ 
	  plugins: [ 
	    storybookTest(),
	  ],
	  include: ['**/*.stories.?(m)[jt]s?(x)'],
	  // ...
	}
])

Because this is using an arbitrary include glob and does not related to the one in main.js, stories can be tested even though they are ignored in Storybook, or vice versa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants