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

feat(eslint): support *.spec.* files for Vitest #14

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

markgaze
Copy link
Contributor

@markgaze markgaze commented Oct 24, 2024

By default, Vitest includes all .spec files as well as .test files so I've added this to the vitestFiles array to make sure they're configured correctly too.

I've added a "test" to the fixture app and ESLint errors about it not being possible to import from the .spec file in there.

Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend using *.test.*, but I appreciate the defaults in vitest and we'll just stick with that.

@kentcdodds kentcdodds merged commit d7f6490 into epicweb-dev:main Oct 24, 2024
@markgaze markgaze deleted the spec-files branch October 25, 2024 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants